pub struct UnitCommand {
pub target: DeviceUid,
pub command: UnitCommandKind,
pub flags: UnitCommandFlag,
pub network: Option<UnitNetConfig>,
}Expand description
A command for one unit, as a peer sent it.
Fields§
§target: DeviceUidThe unit the command is for.
command: UnitCommandKindWhat it asks.
flags: UnitCommandFlagThe command’s flags.
network: Option<UnitNetConfig>The IP configuration a NET_CONFIG
carries, when the frame holds one.
Trait Implementations§
Source§impl Clone for UnitCommand
impl Clone for UnitCommand
impl Copy for UnitCommand
Source§impl Debug for UnitCommand
impl Debug for UnitCommand
impl Eq for UnitCommand
Source§impl PartialEq for UnitCommand
impl PartialEq for UnitCommand
impl StructuralPartialEq for UnitCommand
Auto Trait Implementations§
impl Freeze for UnitCommand
impl RefUnwindSafe for UnitCommand
impl Send for UnitCommand
impl Sync for UnitCommand
impl Unpin for UnitCommand
impl UnsafeUnpin for UnitCommand
impl UnwindSafe for UnitCommand
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