Enum j2ds::ElasticPopResult[][src]

pub enum ElasticPopResult {
    Empty,
    Exact,
    Upsampled(usize),
    Downsampled(usize),
}

Indicates what happened when the queue tried to satisfy the request for elements

Variants

The buffer is completely empty, and so the default value is used

The buffer had enough elements to satisfy the request, but is still below the ideal max length threshold; and so no elements were dropped or duplicated

The buffer had some elements, but not enough to satisfy the request; some elements were repeated to fill the request; the value is how many "real" elements were present in the buffer

The buffer had more elements than the ideal max; some elements were dropped while filling the request; the value is how many "real" elements were removed from the queue

Trait Implementations

impl Debug for ElasticPopResult
[src]

Formats the value using the given formatter. Read more

impl Eq for ElasticPopResult
[src]

impl PartialEq for ElasticPopResult
[src]

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

This method tests for !=.

impl Ord for ElasticPopResult
[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 ElasticPopResult
[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 Copy for ElasticPopResult
[src]

impl Clone for ElasticPopResult
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations