pub trait StreamIsPartial: Sized {
    type PartialState;

    fn complete(&mut self) -> Self::PartialState;
    fn restore_partial(&mut self, state: Self::PartialState);
    fn is_partial_supported() -> bool;

    fn is_partial(&self) -> bool { ... }
}
Expand description

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.

Required Associated Types§

Whether the stream is currently partial or complete

Required Methods§

Mark the stream is complete

Restore the stream back to its previous state

Report whether the Stream is can ever be incomplete

Provided Methods§

Report whether the Stream is currently incomplete

Implementations on Foreign Types§

Implementors§