pub struct Supervisor<'a> {
pub virtual_file_system: &'static VirtualFileSystem,
pub time_manager: &'static Manager<'static>,
pub task: TaskIdentifier,
pub services: &'a [TaskIdentifier],
pub budget: Duration,
}Expand description
Runs the pipeline for a platform: quiesce the descendants of task
(except services), commit storage, stop drivers, then perform the action
through the power device.
The power device is opened by task before anything is stopped, so the
final action does not depend on path resolution after the root filesystem
was unmounted, and an unsupported action fails before any work is done.
Fields§
§virtual_file_system: &'static VirtualFileSystem§time_manager: &'static Manager<'static>§task: TaskIdentifierSupervisor task; its descendants are stopped.
services: &'a [TaskIdentifier]Runtime service subtrees left running (stopped by Drivers).
budget: DurationQuiescence budget on the monotonic clock.
Implementations§
Source§impl Supervisor<'_>
impl Supervisor<'_>
Auto Trait Implementations§
impl<'a> Freeze for Supervisor<'a>
impl<'a> !RefUnwindSafe for Supervisor<'a>
impl<'a> Send for Supervisor<'a>
impl<'a> Sync for Supervisor<'a>
impl<'a> Unpin for Supervisor<'a>
impl<'a> UnsafeUnpin for Supervisor<'a>
impl<'a> !UnwindSafe for Supervisor<'a>
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