Enum j2ds::ElasticPopResult [−][src]
Indicates what happened when the queue tried to satisfy the request for elements
Variants
Empty
The buffer is completely empty, and so the default value is used
Exact
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
Upsampled(usize)
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
Downsampled(usize)
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]
impl Debug for ElasticPopResult
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for ElasticPopResult
[src]
impl Eq for ElasticPopResult
impl PartialEq for ElasticPopResult
[src]
impl PartialEq for ElasticPopResult
fn eq(&self, other: &ElasticPopResult) -> bool
[src]
fn eq(&self, other: &ElasticPopResult) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ElasticPopResult) -> bool
[src]
fn ne(&self, other: &ElasticPopResult) -> bool
This method tests for !=
.
impl Ord for ElasticPopResult
[src]
impl Ord for ElasticPopResult
fn cmp(&self, other: &ElasticPopResult) -> Ordering
[src]
fn cmp(&self, other: &ElasticPopResult) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for ElasticPopResult
[src]
impl PartialOrd for ElasticPopResult
fn partial_cmp(&self, other: &ElasticPopResult) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &ElasticPopResult) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &ElasticPopResult) -> bool
[src]
fn lt(&self, other: &ElasticPopResult) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &ElasticPopResult) -> bool
[src]
fn le(&self, other: &ElasticPopResult) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &ElasticPopResult) -> bool
[src]
fn gt(&self, other: &ElasticPopResult) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &ElasticPopResult) -> bool
[src]
fn ge(&self, other: &ElasticPopResult) -> bool
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 Copy for ElasticPopResult
impl Clone for ElasticPopResult
[src]
impl Clone for ElasticPopResult
fn clone(&self) -> ElasticPopResult
[src]
fn clone(&self) -> ElasticPopResult
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for ElasticPopResult
impl Send for ElasticPopResult
impl Sync for ElasticPopResult
impl Sync for ElasticPopResult