pub struct ShutdownContent {
pub status: Status,
pub restart: bool,
}
Expand description
Response when asking the kernel to shutdown.
Fields§
§status: Status
Status of the request.
restart: bool
Whether restart was requested.
Trait Implementations§
Source§impl Debug for ShutdownContent
impl Debug for ShutdownContent
Source§impl<'de> Deserialize<'de> for ShutdownContent
impl<'de> Deserialize<'de> for ShutdownContent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ShutdownContent
impl RefUnwindSafe for ShutdownContent
impl Send for ShutdownContent
impl Sync for ShutdownContent
impl Unpin for ShutdownContent
impl UnwindSafe for ShutdownContent
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