pub enum TimeRequest {
Now,
NotifyAt {
id: TimerId,
instant: Instant,
},
NotifyAfter {
id: TimerId,
duration: Duration,
},
Clear {
id: TimerId,
},
}
Variants§
Trait Implementations§
Source§impl Clone for TimeRequest
impl Clone for TimeRequest
Source§fn clone(&self) -> TimeRequest
fn clone(&self) -> TimeRequest
Returns a copy 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 TimeRequest
impl Debug for TimeRequest
Source§impl<'de> Deserialize<'de> for TimeRequest
impl<'de> Deserialize<'de> for TimeRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Operation for TimeRequest
impl Operation for TimeRequest
Source§type Output = TimeResponse
type Output = TimeResponse
Output
assigns the type this request results in.Source§impl PartialEq for TimeRequest
impl PartialEq for TimeRequest
Source§impl Serialize for TimeRequest
impl Serialize for TimeRequest
impl Eq for TimeRequest
impl StructuralPartialEq for TimeRequest
Auto Trait Implementations§
impl Freeze for TimeRequest
impl RefUnwindSafe for TimeRequest
impl Send for TimeRequest
impl Sync for TimeRequest
impl Unpin for TimeRequest
impl UnwindSafe for TimeRequest
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