iroh_blobs::util

Trait SendStreamSpecific

Source
pub trait SendStreamSpecific: Send {
    // Required methods
    fn inner(&mut self) -> &mut (impl AsyncWrite + Unpin + Send);
    fn reset(&mut self, code: VarInt) -> Result<()>;
    fn stopped(&mut self) -> impl Future<Output = Result<Option<VarInt>>> + Send;
}

Required Methods§

Source

fn inner(&mut self) -> &mut (impl AsyncWrite + Unpin + Send)

Source

fn reset(&mut self, code: VarInt) -> Result<()>

Source

fn stopped(&mut self) -> impl Future<Output = Result<Option<VarInt>>> + Send

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.

Implementors§