pub struct ReferenceTime { /* private fields */ }Implementations§
Source§impl ReferenceTime
impl ReferenceTime
Sourcepub fn new(
clock_type: Option<ClockType>,
epoch: Option<Epoch>,
wall_clock_time: Option<DateTime<FixedOffset>>,
) -> ReferenceTime
pub fn new( clock_type: Option<ClockType>, epoch: Option<Epoch>, wall_clock_time: Option<DateTime<FixedOffset>>, ) -> ReferenceTime
clock_type defaults to System when None
epoch defaults to “1970-01-01T00:00:00.000Z” when None
Trait Implementations§
Source§impl Default for ReferenceTime
impl Default for ReferenceTime
Source§fn default() -> ReferenceTime
fn default() -> ReferenceTime
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReferenceTime
impl RefUnwindSafe for ReferenceTime
impl Send for ReferenceTime
impl Sync for ReferenceTime
impl Unpin for ReferenceTime
impl UnsafeUnpin for ReferenceTime
impl UnwindSafe for ReferenceTime
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