Skip to main content

ByteStream

Trait ByteStream 

Source
pub trait ByteStream: Stream {
    // Provided method
    fn remaining_length(&self) -> RemainingLength { ... }
}

Provided Methods§

Trait Implementations§

Source§

impl From<Pin<Box<dyn ByteStream<Item = Result<Bytes, Box<dyn Error + Send + Sync>>> + Send + Sync>>> for Body

Source§

fn from(stream: DynByteStream) -> Self

Converts to this type from the input type.
Source§

impl From<Pin<Box<dyn ByteStream<Item = Result<Bytes, Box<dyn Error + Send + Sync>>> + Send + Sync>>> for StreamingBlob

Source§

fn from(value: DynByteStream) -> Self

Converts to this type from the input type.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§