pub trait InputIsStreaming<const YES: bool>: Sized {
    type Complete: InputIsStreaming<false>;
    type Streaming: InputIsStreaming<true>;

    fn into_complete(self) -> Self::Complete;
    fn into_streaming(self) -> Self::Streaming;
}
Expand description

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

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

Required Associated Types§

Complete counterpart

  • Set to Self if this is a complete buffer.
  • Set to std::convert::Infallible if there isn’t an associated complete buffer type

Streaming counterpart

  • Set to Self if this is a streaming buffer.
  • Set to std::convert::Infallible if there isn’t an associated streaming buffer type

Required Methods§

Convert to complete counterpart

Convert to streaming counterpart

Implementations on Foreign Types§

Implementors§