pub trait InputIsStreaming<const YES: bool>: Sized {
type Complete: InputIsStreaming<false>;
type Streaming: InputIsStreaming<true>;
// Required methods
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§
Sourcetype Complete: InputIsStreaming<false>
type Complete: InputIsStreaming<false>
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
Sourcetype Streaming: InputIsStreaming<true>
type Streaming: InputIsStreaming<true>
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§
Sourcefn into_complete(self) -> Self::Complete
fn into_complete(self) -> Self::Complete
Convert to complete counterpart
Sourcefn into_streaming(self) -> Self::Streaming
fn into_streaming(self) -> Self::Streaming
Convert to streaming counterpart
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.