pub struct Time { /* private fields */ }Available on crate feature
tokio only.Expand description
Time style wrapper that stores the non-determinism guard for reading the wall clock.
This is used by the sliced! macro when use::time(...) is specified. It carries no
collection: the slice is the tick’s current wall-clock reading
(Tick::current_tick_instant).
Implementations§
Trait Implementations§
Source§impl<'a, L: Location<'a>> Slicable<'a, L> for Time
impl<'a, L: Location<'a>> Slicable<'a, L> for Time
Source§type Slice = Singleton<Instant, Tick<<L as Location<'a>>::DropConsistency>, Bounded>
type Slice = Singleton<Instant, Tick<<L as Location<'a>>::DropConsistency>, Bounded>
The sliced version of this live collection.
Source§fn get_location(&self) -> L
fn get_location(&self) -> L
Gets the location associated with this live collection.
Source§fn slice(self, tick: &Tick<L>, backtrace: Self::Backtrace) -> Self::Slice
fn slice(self, tick: &Tick<L>, backtrace: Self::Backtrace) -> Self::Slice
Slices this live collection at the given tick. Read more
Source§fn create_tick(&self) -> Tick<L>
fn create_tick(&self) -> Tick<L>
Creates a tick that is appropriate for the collection’s location.
Auto Trait Implementations§
impl Forget for Time
impl Freeze for Time
impl Move for Time
impl RefUnwindSafe for Time
impl Send for Time
impl Sync for Time
impl Unpin for Time
impl UnsafeUnpin for Time
impl UnwindSafe for Time
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.