Struct RetentionWindow
pub struct RetentionWindow(/* private fields */);Expand description
A retention duration.
Implementations§
§impl RetentionWindow
impl RetentionWindow
pub const fn new(duration: Duration) -> RetentionWindow
pub const fn new(duration: Duration) -> RetentionWindow
Creates a retention window.
Trait Implementations§
§impl Clone for RetentionWindow
impl Clone for RetentionWindow
§fn clone(&self) -> RetentionWindow
fn clone(&self) -> RetentionWindow
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 more§impl Debug for RetentionWindow
impl Debug for RetentionWindow
§impl Hash for RetentionWindow
impl Hash for RetentionWindow
§impl PartialEq for RetentionWindow
impl PartialEq for RetentionWindow
impl Copy for RetentionWindow
impl Eq for RetentionWindow
impl StructuralPartialEq for RetentionWindow
Auto Trait Implementations§
impl Freeze for RetentionWindow
impl RefUnwindSafe for RetentionWindow
impl Send for RetentionWindow
impl Sync for RetentionWindow
impl Unpin for RetentionWindow
impl UnsafeUnpin for RetentionWindow
impl UnwindSafe for RetentionWindow
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