iroh_blobs::provider

Trait ErrorHandler

Source
pub trait ErrorHandler {
    type W: AsyncStreamWriter;
    type R: AsyncStreamReader;

    // Required methods
    fn stop(reader: &mut Self::R, code: VarInt) -> impl Future<Output = ()>;
    fn reset(writer: &mut Self::W, code: VarInt) -> impl Future<Output = ()>;
}
Expand description

Describes how to handle errors for a stream.

Required Associated Types§

Source

type W: AsyncStreamWriter

Source

type R: AsyncStreamReader

Required Methods§

Source

fn stop(reader: &mut Self::R, code: VarInt) -> impl Future<Output = ()>

Source

fn reset(writer: &mut Self::W, code: VarInt) -> impl Future<Output = ()>

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§