pub enum Command {
Device(DeviceChange),
GiveUp {
key: String,
reason: String,
},
Stop(String),
}Expand description
Everything the supervisor reacts to.
Variants§
Device(DeviceChange)
The device set changed.
GiveUp
A mount decided its device is gone for good and asked to be taken down.
The filesystem can’t unmount itself (see crate::shutdown), and this
can beat the hotplug departure: a mount notices a dead session on its
next operation, while the USB watch only notices on its next poll.
Stop(String)
Unmount everything and return from Supervisor::run.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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