pub struct DelayDecision { /* private fields */ }Expand description
Pure bounded delay decision. The caller owns sleeping and clock acquisition.
Implementations§
Source§impl DelayDecision
impl DelayDecision
Sourcepub const fn delay(self) -> DelaySeconds
pub const fn delay(self) -> DelaySeconds
Returns the selected delay.
Sourcepub const fn source(self) -> DelaySource
pub const fn source(self) -> DelaySource
Returns the selected metadata source.
Sourcepub const fn was_clamped(self) -> bool
pub const fn was_clamped(self) -> bool
Reports whether the caller maximum shortened the selected delay.
Trait Implementations§
Source§impl Clone for DelayDecision
impl Clone for DelayDecision
Source§fn clone(&self) -> DelayDecision
fn clone(&self) -> DelayDecision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DelayDecision
Source§impl Debug for DelayDecision
impl Debug for DelayDecision
impl Eq for DelayDecision
Source§impl PartialEq for DelayDecision
impl PartialEq for DelayDecision
impl StructuralPartialEq for DelayDecision
Auto Trait Implementations§
impl Freeze for DelayDecision
impl RefUnwindSafe for DelayDecision
impl Send for DelayDecision
impl Sync for DelayDecision
impl Unpin for DelayDecision
impl UnsafeUnpin for DelayDecision
impl UnwindSafe for DelayDecision
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