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§
Required Methods§
fn stop(reader: &mut Self::R, code: VarInt) -> impl Future<Output = ()>
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.