pub struct HostWaitEffects {
pub real_index: PathBuf,
pub started: Instant,
}Expand description
What:
The host effects for one wait on one real index.
Why:
The clock starts when the wait does,
so now_ms measures the wait’s own time.
In TS you’d write (pseudocode):
const effects = { ...HOST_WAIT_EFFECTS, now: () => performance.now() - start };Fields§
§real_index: PathBufThe worktree’s real index;
the lock is <real index>.lock.
started: InstantWhen the wait started.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HostWaitEffects
impl RefUnwindSafe for HostWaitEffects
impl Send for HostWaitEffects
impl Sync for HostWaitEffects
impl Unpin for HostWaitEffects
impl UnsafeUnpin for HostWaitEffects
impl UnwindSafe for HostWaitEffects
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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 more