pub(crate) struct RemoteApplyPrivilege {
pub(crate) use_sudo: bool,
pub(crate) offer_reboot: bool,
}Expand description
Remote privilege flags that track CLI --apply with the same polarity.
After --dry-run was removed, some call sites briefly used !cli.apply, so
--apply disabled sudo and skipped payload. Never invert again.
Fields§
§use_sudo: bool§offer_reboot: boolImplementations§
Source§impl RemoteApplyPrivilege
impl RemoteApplyPrivilege
Sourcepub(crate) const fn from_apply(apply: bool) -> Self
pub(crate) const fn from_apply(apply: bool) -> Self
--apply → sudo (and reboot offer when requested by the caller).
Trait Implementations§
Source§impl Clone for RemoteApplyPrivilege
impl Clone for RemoteApplyPrivilege
Source§fn clone(&self) -> RemoteApplyPrivilege
fn clone(&self) -> RemoteApplyPrivilege
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RemoteApplyPrivilege
Source§impl Debug for RemoteApplyPrivilege
impl Debug for RemoteApplyPrivilege
impl Eq for RemoteApplyPrivilege
Source§impl PartialEq for RemoteApplyPrivilege
impl PartialEq for RemoteApplyPrivilege
Source§fn eq(&self, other: &RemoteApplyPrivilege) -> bool
fn eq(&self, other: &RemoteApplyPrivilege) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RemoteApplyPrivilege
Auto Trait Implementations§
impl Freeze for RemoteApplyPrivilege
impl RefUnwindSafe for RemoteApplyPrivilege
impl Send for RemoteApplyPrivilege
impl Sync for RemoteApplyPrivilege
impl Unpin for RemoteApplyPrivilege
impl UnsafeUnpin for RemoteApplyPrivilege
impl UnwindSafe for RemoteApplyPrivilege
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more