pub enum CounterMessage {
Increment,
Decrement,
Set(i32),
Reset,
}Expand description
Messages for the counter state.
Variants§
Increment
Increment the counter
Decrement
Decrement the counter
Set(i32)
Set the counter to a specific value
Reset
Reset to zero
Trait Implementations§
Source§impl Clone for CounterMessage
impl Clone for CounterMessage
Auto Trait Implementations§
impl Freeze for CounterMessage
impl RefUnwindSafe for CounterMessage
impl Send for CounterMessage
impl Sync for CounterMessage
impl Unpin for CounterMessage
impl UnsafeUnpin for CounterMessage
impl UnwindSafe for CounterMessage
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