Struct logind_zbus::manager::PrepareForShutdown
source · pub struct PrepareForShutdown(/* private fields */);
Expand description
A PrepareForShutdown
signal.
Implementations§
source§impl PrepareForShutdown
impl PrepareForShutdown
sourcepub fn from_message<M>(msg: M) -> Option<Self>
pub fn from_message<M>(msg: M) -> Option<Self>
Try to construct a
PrepareForShutdown
from a zbus::Message
.
sourcepub fn message(&self) -> &Message
pub fn message(&self) -> &Message
The reference to the underlying zbus::Message
.
source§impl PrepareForShutdown
impl PrepareForShutdown
sourcepub fn args<'s>(&'s self) -> Result<PrepareForShutdownArgs<'s>>
pub fn args<'s>(&'s self) -> Result<PrepareForShutdownArgs<'s>>
Retrieve the signal arguments.
Trait Implementations§
source§impl Clone for PrepareForShutdown
impl Clone for PrepareForShutdown
source§fn clone(&self) -> PrepareForShutdown
fn clone(&self) -> PrepareForShutdown
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PrepareForShutdown
impl Debug for PrepareForShutdown
source§impl From<PrepareForShutdown> for Message
impl From<PrepareForShutdown> for Message
source§fn from(signal: PrepareForShutdown) -> Self
fn from(signal: PrepareForShutdown) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PrepareForShutdown
impl RefUnwindSafe for PrepareForShutdown
impl Send for PrepareForShutdown
impl Sync for PrepareForShutdown
impl Unpin for PrepareForShutdown
impl UnwindSafe for PrepareForShutdown
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