pub enum StartMode {
Normal {
settings: NetworkSettings,
replace_other: bool,
},
Restore(Box<Backup>),
}Expand description
How to start.
Variants§
Normal
Resume the NCP’s network if it is settings; form settings if the
NCP has none. A different network on the NCP is an error unless
replace_other (which leaves it, losing its devices).
Fields
§
settings: NetworkSettingsThe network to run.
Restore(Box<Backup>)
Leave whatever the NCP has and restore a backup onto it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StartMode
impl RefUnwindSafe for StartMode
impl Send for StartMode
impl Sync for StartMode
impl Unpin for StartMode
impl UnsafeUnpin for StartMode
impl UnwindSafe for StartMode
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