[][src]Struct tokio_simplified::IoManagerBuilder

pub struct IoManagerBuilder<Codec, Io, F, EH> where
    Codec: Decoder + Encoder + Send + 'static,
    <Codec as Encoder>::Item: Send,
    <Codec as Encoder>::Error: Send,
    <Codec as Decoder>::Item: Send + Clone,
    <Codec as Decoder>::Error: Send,
    Io: AsyncRead + AsyncWrite + Send + 'static,
    F: FnMut(<Codec as Decoder>::Item, &mut IoWriter<Codec>) -> Option<<Codec as Decoder>::Item> + Send + 'static,
    EH: FnMut(<Codec as Decoder>::Error) + Send + 'static, 
{ /* fields omitted */ }

Methods

impl<Codec, Io, F, EH> IoManagerBuilder<Codec, Io, F, EH> where
    Codec: Decoder + Encoder + Send + 'static,
    <Codec as Encoder>::Item: Send,
    <Codec as Encoder>::Error: Send,
    <Codec as Decoder>::Item: Send + Clone,
    <Codec as Decoder>::Error: Send,
    Io: AsyncRead + AsyncWrite + Send + 'static,
    F: Filter<Codec>,
    EH: ErrorHandler<Codec>, 
[src]

pub fn new(
    sink: SplitSink<Framed<Io, Codec>>,
    stream: SplitStream<Framed<Io, Codec>>
) -> Self
[src]

pub fn with_filter(self, filter: F) -> Self[src]

pub fn with_error_handler(self, handler: EH) -> Self[src]

pub fn build(self) -> IoManager<Codec>[src]

Auto Trait Implementations

impl<Codec, Io, F, EH> Send for IoManagerBuilder<Codec, Io, F, EH>

impl<Codec, Io, F, EH> Sync for IoManagerBuilder<Codec, Io, F, EH> where
    EH: Sync,
    F: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T