[][src]Struct multistream_batch::channel::tx_buf_batch::Complete

pub struct Complete<'i, I: Debug>(_);

Provides actions that can be taken to consume complete batch.

Implementations

impl<'i, I: Debug> Complete<'i, I>[src]

pub fn retry(&mut self)[src]

Restarts the batch. TxBufBatchChannel.next() will iterate already received items starting from oldest one in the current batch.

pub fn commit(&mut self)[src]

Commits the current batch by dropping all buffered items.

pub fn drain(&mut self) -> Drain<I>[src]

Commits the current batch by draining all buffered items.

Trait Implementations

impl<'i, I: Debug> Debug for Complete<'i, I>[src]

Auto Trait Implementations

impl<'i, I> RefUnwindSafe for Complete<'i, I> where
    I: RefUnwindSafe

impl<'i, I> Send for Complete<'i, I> where
    I: Send

impl<'i, I> Sync for Complete<'i, I> where
    I: Send + Sync

impl<'i, I> Unpin for Complete<'i, I>

impl<'i, I> !UnwindSafe for Complete<'i, I>

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.