[−][src]Struct tokio_simplified::IoManagerBuilder
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]
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>,
pub fn new(
sink: SplitSink<Framed<Io, Codec>>,
stream: SplitStream<Framed<Io, Codec>>
) -> Self
[src]
sink: SplitSink<Framed<Io, Codec>>,
stream: SplitStream<Framed<Io, Codec>>
) -> Self
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,
EH: Sync,
F: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,