[][src]Enum multistream_batch::multi_buf_batch::PollResult

pub enum PollResult<K: Debug> {
    Ready(K),
    NotReady(Option<Duration>),
}

Represents result from MultiBufBatch.poll() function call.

Variants

Ready(K)

Batch K is ready after reaching one of the limits.

NotReady(Option<Duration>)

No outstanding batch has not reached one of its limits yet. Provides Duration after which max_duration limit will be reached if there is at least one outstanding batch.

Trait Implementations

impl<K: Debug> Debug for PollResult<K>[src]

Auto Trait Implementations

impl<K> RefUnwindSafe for PollResult<K> where
    K: RefUnwindSafe

impl<K> Send for PollResult<K> where
    K: Send

impl<K> Sync for PollResult<K> where
    K: Sync

impl<K> Unpin for PollResult<K> where
    K: Unpin

impl<K> UnwindSafe for PollResult<K> where
    K: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.