pub struct ClockOptions {
pub time_ms: u64,
pub paused: bool,
}Expand description
Options for clock installation
Fields§
§time_ms: u64Initial time to set (milliseconds since Unix epoch)
paused: boolWhether to pause immediately
Implementations§
Source§impl ClockOptions
impl ClockOptions
Sourcepub fn from_iso(iso: &str) -> Result<Self, ClockError>
pub fn from_iso(iso: &str) -> Result<Self, ClockError>
Trait Implementations§
Source§impl Clone for ClockOptions
impl Clone for ClockOptions
Source§fn clone(&self) -> ClockOptions
fn clone(&self) -> ClockOptions
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 ClockOptions
impl Debug for ClockOptions
Source§impl Default for ClockOptions
impl Default for ClockOptions
Source§impl<'de> Deserialize<'de> for ClockOptions
impl<'de> Deserialize<'de> for ClockOptions
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 ClockOptions
impl RefUnwindSafe for ClockOptions
impl Send for ClockOptions
impl Sync for ClockOptions
impl Unpin for ClockOptions
impl UnsafeUnpin for ClockOptions
impl UnwindSafe for ClockOptions
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