pub struct ConstMaxSizeRetentionPolicy<const SIZE: usize>;Expand description
A policy that retains buffers up to a maximum size.
Trait Implementations§
Source§impl<const SIZE: usize> BufferRetentionPolicy for ConstMaxSizeRetentionPolicy<SIZE>
impl<const SIZE: usize> BufferRetentionPolicy for ConstMaxSizeRetentionPolicy<SIZE>
fn should_retain(&self, capacity: usize) -> bool
Source§impl<const SIZE: usize> Clone for ConstMaxSizeRetentionPolicy<SIZE>
impl<const SIZE: usize> Clone for ConstMaxSizeRetentionPolicy<SIZE>
Source§fn clone(&self) -> ConstMaxSizeRetentionPolicy<SIZE>
fn clone(&self) -> ConstMaxSizeRetentionPolicy<SIZE>
Returns a copy 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<const SIZE: usize> Default for ConstMaxSizeRetentionPolicy<SIZE>
impl<const SIZE: usize> Default for ConstMaxSizeRetentionPolicy<SIZE>
Source§fn default() -> ConstMaxSizeRetentionPolicy<SIZE>
fn default() -> ConstMaxSizeRetentionPolicy<SIZE>
Returns the “default value” for a type. Read more
impl<const SIZE: usize> Copy for ConstMaxSizeRetentionPolicy<SIZE>
Auto Trait Implementations§
impl<const SIZE: usize> Freeze for ConstMaxSizeRetentionPolicy<SIZE>
impl<const SIZE: usize> RefUnwindSafe for ConstMaxSizeRetentionPolicy<SIZE>
impl<const SIZE: usize> Send for ConstMaxSizeRetentionPolicy<SIZE>
impl<const SIZE: usize> Sync for ConstMaxSizeRetentionPolicy<SIZE>
impl<const SIZE: usize> Unpin for ConstMaxSizeRetentionPolicy<SIZE>
impl<const SIZE: usize> UnwindSafe for ConstMaxSizeRetentionPolicy<SIZE>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)