pub struct PowerPending {
pub secs: u64,
pub reboot: bool,
}Expand description
The machine’s one pending power action, as the kernel holds it (InspectKernel query 28, docs/shutdown.md).
See ServiceContext::power_pending.
Fields§
§secs: u64Whole seconds until it falls due, rounded up.
reboot: boolA reboot; otherwise a power-off.
Trait Implementations§
Source§impl Clone for PowerPending
impl Clone for PowerPending
Source§fn clone(&self) -> PowerPending
fn clone(&self) -> PowerPending
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for PowerPending
impl PartialEq for PowerPending
Source§fn eq(&self, other: &PowerPending) -> bool
fn eq(&self, other: &PowerPending) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PowerPending
impl Eq for PowerPending
impl StructuralPartialEq for PowerPending
Auto Trait Implementations§
impl Freeze for PowerPending
impl RefUnwindSafe for PowerPending
impl Send for PowerPending
impl Sync for PowerPending
impl Unpin for PowerPending
impl UnsafeUnpin for PowerPending
impl UnwindSafe for PowerPending
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