Enum slice_queue::AutoShrinkMode[][src]

pub enum AutoShrinkMode {
    Opportunistic,
    Aggressive,
    Disabled,
}

Variants

Shrinks the SliceQueue in 50% steps using self.shrink_opportunistic

This mode is the default value

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

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

impl Copy for AutoShrinkMode
[src]

impl Clone for AutoShrinkMode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for AutoShrinkMode
[src]

Formats the value using the given formatter. Read more

impl Ord for AutoShrinkMode
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd for AutoShrinkMode
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PartialEq for AutoShrinkMode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for AutoShrinkMode
[src]

impl Default for AutoShrinkMode
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations