pub enum Request {
Start,
Get,
Set(usize),
Pause,
Resume,
Stop,
}Expand description
The request struct.
Request are sent by clients and received by servers.
Variants§
Start
Request the timer to start with the first work 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.
Stop
Request to stop the timer. Stopping the timer resets the state, cycle and the value.
Trait Implementations§
source§impl PartialEq for Request
impl PartialEq for Request
impl Eq for Request
impl StructuralEq for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
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