Enum bytecodec::ByteCount [] [src]

pub enum ByteCount {
    Finite(u64),
    Infinite,
    Unknown,
}

Number of bytes of interest.

Variants

Methods

impl ByteCount
[src]

[src]

Returns true if this is ByteCount::Finite(_), otherwise false.

[src]

Returns true if this is ByteCount::Infinite, otherwise false.

[src]

Returns true if this is ByteCount::Unknown, otherwise false.

[src]

Tries to convert this ByteCount to an u64 value.

If it is not a ByteCount::Finite(_),None will be returned.

Trait Implementations

impl Debug for ByteCount
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for ByteCount
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for ByteCount
[src]

impl PartialEq for ByteCount
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for ByteCount
[src]

impl Hash for ByteCount
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialOrd for ByteCount
[src]

[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

Auto Trait Implementations

impl Send for ByteCount

impl Sync for ByteCount