pub enum AutoShrinkMode {
Opportunistic,
Aggressive,
Disabled,
}Variants§
Opportunistic
Shrinks the SliceQueue in 50% steps using self.shrink_opportunistic
This mode is the default value
Aggressive
Immediately shrinks the SliceQueue to the amount of bytes used using self.shrink_to_fit
This method is potentially inefficient but can be useful in certain scenarios
Disabled
Disables auto-shrink
If this mode is set, you must take care to use the self.shrink_opportunistic or
self.shrink_to_fit methods accordingly if necessary.
Trait Implementations§
Source§impl Clone for AutoShrinkMode
impl Clone for AutoShrinkMode
Source§fn clone(&self) -> AutoShrinkMode
fn clone(&self) -> AutoShrinkMode
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 AutoShrinkMode
impl Debug for AutoShrinkMode
Source§impl Default for AutoShrinkMode
impl Default for AutoShrinkMode
Source§impl Ord for AutoShrinkMode
impl Ord for AutoShrinkMode
Source§fn cmp(&self, other: &AutoShrinkMode) -> Ordering
fn cmp(&self, other: &AutoShrinkMode) -> 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 AutoShrinkMode
impl PartialEq for AutoShrinkMode
Source§impl PartialOrd for AutoShrinkMode
impl PartialOrd for AutoShrinkMode
impl Copy for AutoShrinkMode
impl Eq for AutoShrinkMode
impl StructuralPartialEq for AutoShrinkMode
Auto Trait Implementations§
impl Freeze for AutoShrinkMode
impl RefUnwindSafe for AutoShrinkMode
impl Send for AutoShrinkMode
impl Sync for AutoShrinkMode
impl Unpin for AutoShrinkMode
impl UnwindSafe for AutoShrinkMode
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