pub enum TimeSource {
System,
Ntp {
server: String,
offset_ms: f64,
},
Gps,
Consensus {
participants: u32,
},
External {
source: String,
},
Unknown,
}Variants§
Trait Implementations§
Source§impl Clone for TimeSource
impl Clone for TimeSource
Source§fn clone(&self) -> TimeSource
fn clone(&self) -> TimeSource
Returns a duplicate 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 TimeSource
impl Debug for TimeSource
Source§impl<'de> Deserialize<'de> for TimeSource
impl<'de> Deserialize<'de> for TimeSource
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
Auto Trait Implementations§
impl Freeze for TimeSource
impl RefUnwindSafe for TimeSource
impl Send for TimeSource
impl Sync for TimeSource
impl Unpin for TimeSource
impl UnsafeUnpin for TimeSource
impl UnwindSafe for TimeSource
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