pub enum SoftCycleMessage {
Shutdown,
Restart,
}Available on crate feature
global_instance only.Expand description
Message type for the global controller.
Variants§
Trait Implementations§
Source§impl Clone for SoftCycleMessage
impl Clone for SoftCycleMessage
Source§fn clone(&self) -> SoftCycleMessage
fn clone(&self) -> SoftCycleMessage
Returns a duplicate 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 SoftCycleMessage
impl Debug for SoftCycleMessage
Source§impl From<SoftCycleMessage> for u8
impl From<SoftCycleMessage> for u8
Source§fn from(value: SoftCycleMessage) -> Self
fn from(value: SoftCycleMessage) -> Self
Converts to this type from the input type.
Source§impl From<u8> for SoftCycleMessage
Converts a u8 to SoftCycleMessage.
impl From<u8> for SoftCycleMessage
Converts a u8 to SoftCycleMessage.
Valid values: 0 → Shutdown, 1 → Restart.
Invalid values: Any other u8 (e.g. 2..=255) causes a panic. Use this conversion
only with values produced by Into::into from a SoftCycleMessage, or when the
value is otherwise known to be 0 or 1.
Source§impl Hash for SoftCycleMessage
impl Hash for SoftCycleMessage
Source§impl PartialEq for SoftCycleMessage
impl PartialEq for SoftCycleMessage
Source§impl Payload for SoftCycleMessage
impl Payload for SoftCycleMessage
type UnderlyingAtomic = AtomicU8
impl Copy for SoftCycleMessage
impl Eq for SoftCycleMessage
impl StructuralPartialEq for SoftCycleMessage
Auto Trait Implementations§
impl Freeze for SoftCycleMessage
impl RefUnwindSafe for SoftCycleMessage
impl Send for SoftCycleMessage
impl Sync for SoftCycleMessage
impl Unpin for SoftCycleMessage
impl UnsafeUnpin for SoftCycleMessage
impl UnwindSafe for SoftCycleMessage
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