Skip to main content

Streaming

Trait Streaming 

Source
pub trait Streaming<'req, 'd: 'req>: Encode<'req, 'd> + Sink<'d> {
    // Required method
    fn split_stream<S>(output: Self::Stream<S>) -> (Self::Prepared, Option<S>);
}
Expand description

Separates an encoded head from the body retained by a streaming task.

Required Methods§

Source

fn split_stream<S>(output: Self::Stream<S>) -> (Self::Prepared, Option<S>)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§