pub struct SilentWait;Expand description
What: The notice that says nothing. Why: Most acquirers wait silently, as the incumbent’s default.
In TS you’d write (pseudocode):
const onWait = undefined;Trait Implementations§
Source§impl Clone for SilentWait
impl Clone for SilentWait
impl Copy for SilentWait
Source§impl Debug for SilentWait
impl Debug for SilentWait
Source§impl Default for SilentWait
impl Default for SilentWait
Source§impl WaitNotice for SilentWait
Waiting silently does nothing.
impl WaitNotice for SilentWait
Waiting silently does nothing.
Source§fn slow(&mut self, _waited: Duration)
fn slow(&mut self, _waited: Duration)
Called when the wait has lasted the cadence’s grace,
and again at every interval after it,
with how long the wait has lasted.
Brief contention never reaches it;
a notice that only needs the first moment ignores it.
Source§fn announces_at_start(&self) -> bool
fn announces_at_start(&self) -> bool
Whether
waiting already said so out loud,
so the first slow call comes one interval after the start instead of after the grace.Auto Trait Implementations§
impl Freeze for SilentWait
impl RefUnwindSafe for SilentWait
impl Send for SilentWait
impl Sync for SilentWait
impl Unpin for SilentWait
impl UnsafeUnpin for SilentWait
impl UnwindSafe for SilentWait
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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