Trait StreamIsPartial

trait StreamIsPartial: Sized

Marks the input as being the complete buffer or a partial buffer for streaming input

See Partial for marking a presumed complete buffer type as a streaming buffer.

Associated Types

type PartialState

Whether the stream is currently partial or complete

Required Methods

fn complete(self: &mut Self) -> <Self as >::PartialState

Mark the stream is complete

fn restore_partial(self: &mut Self, state: <Self as >::PartialState)

Restore the stream back to its previous state

fn is_partial_supported() -> bool

Report whether the Stream is can ever be incomplete

Provided Methods

fn is_partial(self: &Self) -> bool

Report whether the Stream is currently incomplete

Implementors