pub enum SetTime {
Now,
At {
time: Timestamp,
},
}Expand description
A time to set: the server’s current clock, or an explicit instant.
Variants§
Trait Implementations§
impl Copy for SetTime
Source§impl<'de> Deserialize<'de> for SetTime
impl<'de> Deserialize<'de> for SetTime
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 From<SystemTime> for SetTime
impl From<SystemTime> for SetTime
Source§fn from(t: SystemTime) -> Self
fn from(t: SystemTime) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SetTime
impl RefUnwindSafe for SetTime
impl Send for SetTime
impl Sync for SetTime
impl Unpin for SetTime
impl UnsafeUnpin for SetTime
impl UnwindSafe for SetTime
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