[−][src]Struct wayk_proto::message::now_messages::system::ShutdownFlags
Fields
value: u8
Implementations
impl ShutdownFlags
[src]
impl ShutdownFlags
[src]
pub const FORCE: u8
[src]
pub fn force(self) -> bool
[src]
pub fn set_force(&mut self) -> Self
[src]
pub fn unset_force(&mut self) -> Self
[src]
pub const REBOOT: u8
[src]
pub fn reboot(self) -> bool
[src]
pub fn set_reboot(&mut self) -> Self
[src]
pub fn unset_reboot(&mut self) -> Self
[src]
Trait Implementations
impl Clone for ShutdownFlags
[src]
fn clone(&self) -> ShutdownFlags
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ShutdownFlags
[src]
impl Debug for ShutdownFlags
[src]
impl<'dec> Decode<'dec> for ShutdownFlags
[src]
fn decode_from(cursor: &mut Cursor<&'dec [u8]>) -> Result<Self, ProtoError>
[src]
fn decode(bytes: &'dec [u8]) -> Result<Self, ProtoError>
[src]
impl Encode for ShutdownFlags
[src]
fn encoded_len(&self) -> usize
[src]
fn encode_into<W: Write>(&self, writer: &mut W) -> Result<(), ProtoError>
[src]
fn encode(&self) -> Result<Vec<u8>, ProtoError> where
Self: Sized,
[src]
Self: Sized,
impl From<u8> for ShutdownFlags
[src]
impl Into<u8> for ShutdownFlags
[src]
impl PartialEq<ShutdownFlags> for ShutdownFlags
[src]
fn eq(&self, other: &ShutdownFlags) -> bool
[src]
fn ne(&self, other: &ShutdownFlags) -> bool
[src]
impl PartialEq<u8> for ShutdownFlags
[src]
impl StructuralPartialEq for ShutdownFlags
[src]
Auto Trait Implementations
impl RefUnwindSafe for ShutdownFlags
impl Send for ShutdownFlags
impl Sync for ShutdownFlags
impl Unpin for ShutdownFlags
impl UnwindSafe for ShutdownFlags
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,