pub struct UnitCommandFlag(/* private fields */);Expand description
The flags of a unit command.
Implementations§
Source§impl UnitCommandFlag
impl UnitCommandFlag
Sourcepub const FORCE: Self
pub const FORCE: Self
With UnitCommandKind::FPGA_UPGRADE: flash the image even if it
is running already.
Sourcepub const DHCP: Self
pub const DHCP: Self
With UnitCommandKind::NET_CONFIG: use DHCP, ignoring the
addresses.
Trait Implementations§
Source§impl BitAnd for UnitCommandFlag
impl BitAnd for UnitCommandFlag
Source§impl BitOr for UnitCommandFlag
impl BitOr for UnitCommandFlag
Source§impl BitOrAssign for UnitCommandFlag
impl BitOrAssign for UnitCommandFlag
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl Clone for UnitCommandFlag
impl Clone for UnitCommandFlag
impl Copy for UnitCommandFlag
Source§impl Debug for UnitCommandFlag
impl Debug for UnitCommandFlag
Source§impl Default for UnitCommandFlag
impl Default for UnitCommandFlag
Source§impl Display for UnitCommandFlag
impl Display for UnitCommandFlag
impl Eq for UnitCommandFlag
Source§impl Hash for UnitCommandFlag
impl Hash for UnitCommandFlag
Source§impl Ord for UnitCommandFlag
impl Ord for UnitCommandFlag
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for UnitCommandFlag
impl PartialEq for UnitCommandFlag
Source§impl PartialOrd for UnitCommandFlag
impl PartialOrd for UnitCommandFlag
impl StructuralPartialEq for UnitCommandFlag
Auto Trait Implementations§
impl Freeze for UnitCommandFlag
impl RefUnwindSafe for UnitCommandFlag
impl Send for UnitCommandFlag
impl Sync for UnitCommandFlag
impl Unpin for UnitCommandFlag
impl UnsafeUnpin for UnitCommandFlag
impl UnwindSafe for UnitCommandFlag
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