iroh_blobs::util

Trait RecvStreamSpecific

Source
pub trait RecvStreamSpecific: Send {
    // Required methods
    fn inner(&mut self) -> &mut (impl AsyncRead + Unpin + Send);
    fn stop(&mut self, code: VarInt) -> Result<()>;
    fn id(&self) -> u64;
}

Required Methods§

Source

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

Source

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

Source

fn id(&self) -> u64

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§