pub enum Request {
Start,
Get,
Set(usize),
Pause,
Resume,
Stop,
}
Expand description
The client request struct.
Requests are sent by clients and received by servers.
Variants§
Start
Request the timer to start with the first configured cycle.
Get
Request the state, the cycle and the value of the timer.
Set(usize)
Request to change the current timer duration.
Pause
Request to pause the timer.
A paused timer freezes, which means it keeps its state, cycle and value till it get resumed.
Resume
Request to resume the paused timer.
Has no effect if the timer is not paused.
Stop
Request to stop the timer.
Stopping the timer resets the state, the cycle and the value.
Trait Implementations§
impl Eq for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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