pub struct ReceiverCoalesceWindow(/* private fields */);Expand description
Typed wrapper for a millisecond coalesce window.
Implementations§
Source§impl ReceiverCoalesceWindow
impl ReceiverCoalesceWindow
Sourcepub const fn from_millis(value: u64) -> Result<Self, TuningValueError>
pub const fn from_millis(value: u64) -> Result<Self, TuningValueError>
Creates a validated coalesce window from milliseconds.
§Errors
Returns TuningValueError::ZeroMillis when value is zero.
Sourcepub const fn as_millis_u64(self) -> u64
pub const fn as_millis_u64(self) -> u64
Returns the value in milliseconds.
Sourcepub const fn as_duration(self) -> Duration
pub const fn as_duration(self) -> Duration
Returns the underlying duration.
Trait Implementations§
Source§impl Clone for ReceiverCoalesceWindow
impl Clone for ReceiverCoalesceWindow
Source§fn clone(&self) -> ReceiverCoalesceWindow
fn clone(&self) -> ReceiverCoalesceWindow
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReceiverCoalesceWindow
impl Debug for ReceiverCoalesceWindow
Source§impl Hash for ReceiverCoalesceWindow
impl Hash for ReceiverCoalesceWindow
Source§impl Ord for ReceiverCoalesceWindow
impl Ord for ReceiverCoalesceWindow
Source§fn cmp(&self, other: &ReceiverCoalesceWindow) -> Ordering
fn cmp(&self, other: &ReceiverCoalesceWindow) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ReceiverCoalesceWindow
impl PartialEq for ReceiverCoalesceWindow
Source§impl PartialOrd for ReceiverCoalesceWindow
impl PartialOrd for ReceiverCoalesceWindow
impl Copy for ReceiverCoalesceWindow
impl Eq for ReceiverCoalesceWindow
impl StructuralPartialEq for ReceiverCoalesceWindow
Auto Trait Implementations§
impl Freeze for ReceiverCoalesceWindow
impl RefUnwindSafe for ReceiverCoalesceWindow
impl Send for ReceiverCoalesceWindow
impl Sync for ReceiverCoalesceWindow
impl Unpin for ReceiverCoalesceWindow
impl UnsafeUnpin for ReceiverCoalesceWindow
impl UnwindSafe for ReceiverCoalesceWindow
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