Struct wasm_tokio::cm::TupleDecoder

source ·
pub struct TupleDecoder<C, V> { /* private fields */ }

Implementations§

source§

impl<C, V> TupleDecoder<C, V>

source

pub fn into_inner(self) -> C

source§

impl<C, V> TupleDecoder<C, V>
where V: Default,

source

pub fn new(decoder: C) -> Self

Trait Implementations§

source§

impl<C: Debug, V: Debug> Debug for TupleDecoder<C, V>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<E, C0> Decoder for TupleDecoder<(C0,), (Option<C0::Item>,)>
where E: From<Error>, C0: Decoder<Error = E>,

source§

type Error = E

The type of unrecoverable frame decoding errors. Read more
source§

type Item = (<C0 as Decoder>::Item,)

The type of decoded frames.
source§

fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

Attempts to decode a frame from the provided buffer of bytes. Read more
source§

fn decode_eof( &mut self, buf: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more
source§

fn framed<T>(self, io: T) -> Framed<T, Self>
where T: AsyncRead + AsyncWrite, Self: Sized,

Provides a Stream and Sink interface for reading and writing to this Io object, using Decode and Encode to read and write the raw data. Read more
source§

impl<E, C0, C1> Decoder for TupleDecoder<(C0, C1), (Option<C0::Item>, Option<C1::Item>)>
where E: From<Error>, C0: Decoder<Error = E>, C1: Decoder<Error = E>,

source§

type Error = E

The type of unrecoverable frame decoding errors. Read more
source§

type Item = (<C0 as Decoder>::Item, <C1 as Decoder>::Item)

The type of decoded frames.
source§

fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

Attempts to decode a frame from the provided buffer of bytes. Read more
source§

fn decode_eof( &mut self, buf: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more
source§

fn framed<T>(self, io: T) -> Framed<T, Self>
where T: AsyncRead + AsyncWrite, Self: Sized,

Provides a Stream and Sink interface for reading and writing to this Io object, using Decode and Encode to read and write the raw data. Read more
source§

impl<E, C0, C1, C2> Decoder for TupleDecoder<(C0, C1, C2), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>)>
where E: From<Error>, C0: Decoder<Error = E>, C1: Decoder<Error = E>, C2: Decoder<Error = E>,

source§

type Error = E

The type of unrecoverable frame decoding errors. Read more
source§

type Item = (<C0 as Decoder>::Item, <C1 as Decoder>::Item, <C2 as Decoder>::Item)

The type of decoded frames.
source§

fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

Attempts to decode a frame from the provided buffer of bytes. Read more
source§

fn decode_eof( &mut self, buf: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more
source§

fn framed<T>(self, io: T) -> Framed<T, Self>
where T: AsyncRead + AsyncWrite, Self: Sized,

Provides a Stream and Sink interface for reading and writing to this Io object, using Decode and Encode to read and write the raw data. Read more
source§

impl<E, C0, C1, C2, C3> Decoder for TupleDecoder<(C0, C1, C2, C3), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>)>
where E: From<Error>, C0: Decoder<Error = E>, C1: Decoder<Error = E>, C2: Decoder<Error = E>, C3: Decoder<Error = E>,

source§

type Error = E

The type of unrecoverable frame decoding errors. Read more
source§

type Item = (<C0 as Decoder>::Item, <C1 as Decoder>::Item, <C2 as Decoder>::Item, <C3 as Decoder>::Item)

The type of decoded frames.
source§

fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

Attempts to decode a frame from the provided buffer of bytes. Read more
source§

fn decode_eof( &mut self, buf: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more
source§

fn framed<T>(self, io: T) -> Framed<T, Self>
where T: AsyncRead + AsyncWrite, Self: Sized,

Provides a Stream and Sink interface for reading and writing to this Io object, using Decode and Encode to read and write the raw data. Read more
source§

impl<E, C0, C1, C2, C3, C4> Decoder for TupleDecoder<(C0, C1, C2, C3, C4), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>)>
where E: From<Error>, C0: Decoder<Error = E>, C1: Decoder<Error = E>, C2: Decoder<Error = E>, C3: Decoder<Error = E>, C4: Decoder<Error = E>,

source§

type Error = E

The type of unrecoverable frame decoding errors. Read more
source§

type Item = (<C0 as Decoder>::Item, <C1 as Decoder>::Item, <C2 as Decoder>::Item, <C3 as Decoder>::Item, <C4 as Decoder>::Item)

The type of decoded frames.
source§

fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

Attempts to decode a frame from the provided buffer of bytes. Read more
source§

fn decode_eof( &mut self, buf: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more
source§

fn framed<T>(self, io: T) -> Framed<T, Self>
where T: AsyncRead + AsyncWrite, Self: Sized,

Provides a Stream and Sink interface for reading and writing to this Io object, using Decode and Encode to read and write the raw data. Read more
source§

impl<E, C0, C1, C2, C3, C4, C5> Decoder for TupleDecoder<(C0, C1, C2, C3, C4, C5), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>, Option<C5::Item>)>
where E: From<Error>, C0: Decoder<Error = E>, C1: Decoder<Error = E>, C2: Decoder<Error = E>, C3: Decoder<Error = E>, C4: Decoder<Error = E>, C5: Decoder<Error = E>,

source§

type Error = E

The type of unrecoverable frame decoding errors. Read more
source§

type Item = (<C0 as Decoder>::Item, <C1 as Decoder>::Item, <C2 as Decoder>::Item, <C3 as Decoder>::Item, <C4 as Decoder>::Item, <C5 as Decoder>::Item)

The type of decoded frames.
source§

fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

Attempts to decode a frame from the provided buffer of bytes. Read more
source§

fn decode_eof( &mut self, buf: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more
source§

fn framed<T>(self, io: T) -> Framed<T, Self>
where T: AsyncRead + AsyncWrite, Self: Sized,

Provides a Stream and Sink interface for reading and writing to this Io object, using Decode and Encode to read and write the raw data. Read more
source§

impl<E, C0, C1, C2, C3, C4, C5, C6> Decoder for TupleDecoder<(C0, C1, C2, C3, C4, C5, C6), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>, Option<C5::Item>, Option<C6::Item>)>
where E: From<Error>, C0: Decoder<Error = E>, C1: Decoder<Error = E>, C2: Decoder<Error = E>, C3: Decoder<Error = E>, C4: Decoder<Error = E>, C5: Decoder<Error = E>, C6: Decoder<Error = E>,

source§

type Error = E

The type of unrecoverable frame decoding errors. Read more
source§

type Item = (<C0 as Decoder>::Item, <C1 as Decoder>::Item, <C2 as Decoder>::Item, <C3 as Decoder>::Item, <C4 as Decoder>::Item, <C5 as Decoder>::Item, <C6 as Decoder>::Item)

The type of decoded frames.
source§

fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

Attempts to decode a frame from the provided buffer of bytes. Read more
source§

fn decode_eof( &mut self, buf: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more
source§

fn framed<T>(self, io: T) -> Framed<T, Self>
where T: AsyncRead + AsyncWrite, Self: Sized,

Provides a Stream and Sink interface for reading and writing to this Io object, using Decode and Encode to read and write the raw data. Read more
source§

impl<E, C0, C1, C2, C3, C4, C5, C6, C7> Decoder for TupleDecoder<(C0, C1, C2, C3, C4, C5, C6, C7), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>, Option<C5::Item>, Option<C6::Item>, Option<C7::Item>)>
where E: From<Error>, C0: Decoder<Error = E>, C1: Decoder<Error = E>, C2: Decoder<Error = E>, C3: Decoder<Error = E>, C4: Decoder<Error = E>, C5: Decoder<Error = E>, C6: Decoder<Error = E>, C7: Decoder<Error = E>,

source§

type Error = E

The type of unrecoverable frame decoding errors. Read more
source§

type Item = (<C0 as Decoder>::Item, <C1 as Decoder>::Item, <C2 as Decoder>::Item, <C3 as Decoder>::Item, <C4 as Decoder>::Item, <C5 as Decoder>::Item, <C6 as Decoder>::Item, <C7 as Decoder>::Item)

The type of decoded frames.
source§

fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

Attempts to decode a frame from the provided buffer of bytes. Read more
source§

fn decode_eof( &mut self, buf: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more
source§

fn framed<T>(self, io: T) -> Framed<T, Self>
where T: AsyncRead + AsyncWrite, Self: Sized,

Provides a Stream and Sink interface for reading and writing to this Io object, using Decode and Encode to read and write the raw data. Read more
source§

impl<E, C0, C1, C2, C3, C4, C5, C6, C7, C8> Decoder for TupleDecoder<(C0, C1, C2, C3, C4, C5, C6, C7, C8), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>, Option<C5::Item>, Option<C6::Item>, Option<C7::Item>, Option<C8::Item>)>
where E: From<Error>, C0: Decoder<Error = E>, C1: Decoder<Error = E>, C2: Decoder<Error = E>, C3: Decoder<Error = E>, C4: Decoder<Error = E>, C5: Decoder<Error = E>, C6: Decoder<Error = E>, C7: Decoder<Error = E>, C8: Decoder<Error = E>,

source§

type Error = E

The type of unrecoverable frame decoding errors. Read more
source§

type Item = (<C0 as Decoder>::Item, <C1 as Decoder>::Item, <C2 as Decoder>::Item, <C3 as Decoder>::Item, <C4 as Decoder>::Item, <C5 as Decoder>::Item, <C6 as Decoder>::Item, <C7 as Decoder>::Item, <C8 as Decoder>::Item)

The type of decoded frames.
source§

fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

Attempts to decode a frame from the provided buffer of bytes. Read more
source§

fn decode_eof( &mut self, buf: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more
source§

fn framed<T>(self, io: T) -> Framed<T, Self>
where T: AsyncRead + AsyncWrite, Self: Sized,

Provides a Stream and Sink interface for reading and writing to this Io object, using Decode and Encode to read and write the raw data. Read more
source§

impl<E, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9> Decoder for TupleDecoder<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>, Option<C5::Item>, Option<C6::Item>, Option<C7::Item>, Option<C8::Item>, Option<C9::Item>)>
where E: From<Error>, C0: Decoder<Error = E>, C1: Decoder<Error = E>, C2: Decoder<Error = E>, C3: Decoder<Error = E>, C4: Decoder<Error = E>, C5: Decoder<Error = E>, C6: Decoder<Error = E>, C7: Decoder<Error = E>, C8: Decoder<Error = E>, C9: Decoder<Error = E>,

source§

type Error = E

The type of unrecoverable frame decoding errors. Read more
source§

type Item = (<C0 as Decoder>::Item, <C1 as Decoder>::Item, <C2 as Decoder>::Item, <C3 as Decoder>::Item, <C4 as Decoder>::Item, <C5 as Decoder>::Item, <C6 as Decoder>::Item, <C7 as Decoder>::Item, <C8 as Decoder>::Item, <C9 as Decoder>::Item)

The type of decoded frames.
source§

fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

Attempts to decode a frame from the provided buffer of bytes. Read more
source§

fn decode_eof( &mut self, buf: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more
source§

fn framed<T>(self, io: T) -> Framed<T, Self>
where T: AsyncRead + AsyncWrite, Self: Sized,

Provides a Stream and Sink interface for reading and writing to this Io object, using Decode and Encode to read and write the raw data. Read more
source§

impl<E, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10> Decoder for TupleDecoder<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>, Option<C5::Item>, Option<C6::Item>, Option<C7::Item>, Option<C8::Item>, Option<C9::Item>, Option<C10::Item>)>
where E: From<Error>, C0: Decoder<Error = E>, C1: Decoder<Error = E>, C2: Decoder<Error = E>, C3: Decoder<Error = E>, C4: Decoder<Error = E>, C5: Decoder<Error = E>, C6: Decoder<Error = E>, C7: Decoder<Error = E>, C8: Decoder<Error = E>, C9: Decoder<Error = E>, C10: Decoder<Error = E>,

source§

type Error = E

The type of unrecoverable frame decoding errors. Read more
source§

type Item = (<C0 as Decoder>::Item, <C1 as Decoder>::Item, <C2 as Decoder>::Item, <C3 as Decoder>::Item, <C4 as Decoder>::Item, <C5 as Decoder>::Item, <C6 as Decoder>::Item, <C7 as Decoder>::Item, <C8 as Decoder>::Item, <C9 as Decoder>::Item, <C10 as Decoder>::Item)

The type of decoded frames.
source§

fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

Attempts to decode a frame from the provided buffer of bytes. Read more
source§

fn decode_eof( &mut self, buf: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more
source§

fn framed<T>(self, io: T) -> Framed<T, Self>
where T: AsyncRead + AsyncWrite, Self: Sized,

Provides a Stream and Sink interface for reading and writing to this Io object, using Decode and Encode to read and write the raw data. Read more
source§

impl<E, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11> Decoder for TupleDecoder<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>, Option<C5::Item>, Option<C6::Item>, Option<C7::Item>, Option<C8::Item>, Option<C9::Item>, Option<C10::Item>, Option<C11::Item>)>
where E: From<Error>, C0: Decoder<Error = E>, C1: Decoder<Error = E>, C2: Decoder<Error = E>, C3: Decoder<Error = E>, C4: Decoder<Error = E>, C5: Decoder<Error = E>, C6: Decoder<Error = E>, C7: Decoder<Error = E>, C8: Decoder<Error = E>, C9: Decoder<Error = E>, C10: Decoder<Error = E>, C11: Decoder<Error = E>,

source§

type Error = E

The type of unrecoverable frame decoding errors. Read more
source§

type Item = (<C0 as Decoder>::Item, <C1 as Decoder>::Item, <C2 as Decoder>::Item, <C3 as Decoder>::Item, <C4 as Decoder>::Item, <C5 as Decoder>::Item, <C6 as Decoder>::Item, <C7 as Decoder>::Item, <C8 as Decoder>::Item, <C9 as Decoder>::Item, <C10 as Decoder>::Item, <C11 as Decoder>::Item)

The type of decoded frames.
source§

fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

Attempts to decode a frame from the provided buffer of bytes. Read more
source§

fn decode_eof( &mut self, buf: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more
source§

fn framed<T>(self, io: T) -> Framed<T, Self>
where T: AsyncRead + AsyncWrite, Self: Sized,

Provides a Stream and Sink interface for reading and writing to this Io object, using Decode and Encode to read and write the raw data. Read more
source§

impl<E, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12> Decoder for TupleDecoder<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>, Option<C5::Item>, Option<C6::Item>, Option<C7::Item>, Option<C8::Item>, Option<C9::Item>, Option<C10::Item>, Option<C11::Item>, Option<C12::Item>)>
where E: From<Error>, C0: Decoder<Error = E>, C1: Decoder<Error = E>, C2: Decoder<Error = E>, C3: Decoder<Error = E>, C4: Decoder<Error = E>, C5: Decoder<Error = E>, C6: Decoder<Error = E>, C7: Decoder<Error = E>, C8: Decoder<Error = E>, C9: Decoder<Error = E>, C10: Decoder<Error = E>, C11: Decoder<Error = E>, C12: Decoder<Error = E>,

source§

type Error = E

The type of unrecoverable frame decoding errors. Read more
source§

type Item = (<C0 as Decoder>::Item, <C1 as Decoder>::Item, <C2 as Decoder>::Item, <C3 as Decoder>::Item, <C4 as Decoder>::Item, <C5 as Decoder>::Item, <C6 as Decoder>::Item, <C7 as Decoder>::Item, <C8 as Decoder>::Item, <C9 as Decoder>::Item, <C10 as Decoder>::Item, <C11 as Decoder>::Item, <C12 as Decoder>::Item)

The type of decoded frames.
source§

fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

Attempts to decode a frame from the provided buffer of bytes. Read more
source§

fn decode_eof( &mut self, buf: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more
source§

fn framed<T>(self, io: T) -> Framed<T, Self>
where T: AsyncRead + AsyncWrite, Self: Sized,

Provides a Stream and Sink interface for reading and writing to this Io object, using Decode and Encode to read and write the raw data. Read more
source§

impl<E, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13> Decoder for TupleDecoder<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>, Option<C5::Item>, Option<C6::Item>, Option<C7::Item>, Option<C8::Item>, Option<C9::Item>, Option<C10::Item>, Option<C11::Item>, Option<C12::Item>, Option<C13::Item>)>
where E: From<Error>, C0: Decoder<Error = E>, C1: Decoder<Error = E>, C2: Decoder<Error = E>, C3: Decoder<Error = E>, C4: Decoder<Error = E>, C5: Decoder<Error = E>, C6: Decoder<Error = E>, C7: Decoder<Error = E>, C8: Decoder<Error = E>, C9: Decoder<Error = E>, C10: Decoder<Error = E>, C11: Decoder<Error = E>, C12: Decoder<Error = E>, C13: Decoder<Error = E>,

source§

type Error = E

The type of unrecoverable frame decoding errors. Read more
source§

type Item = (<C0 as Decoder>::Item, <C1 as Decoder>::Item, <C2 as Decoder>::Item, <C3 as Decoder>::Item, <C4 as Decoder>::Item, <C5 as Decoder>::Item, <C6 as Decoder>::Item, <C7 as Decoder>::Item, <C8 as Decoder>::Item, <C9 as Decoder>::Item, <C10 as Decoder>::Item, <C11 as Decoder>::Item, <C12 as Decoder>::Item, <C13 as Decoder>::Item)

The type of decoded frames.
source§

fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

Attempts to decode a frame from the provided buffer of bytes. Read more
source§

fn decode_eof( &mut self, buf: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more
source§

fn framed<T>(self, io: T) -> Framed<T, Self>
where T: AsyncRead + AsyncWrite, Self: Sized,

Provides a Stream and Sink interface for reading and writing to this Io object, using Decode and Encode to read and write the raw data. Read more
source§

impl<E, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14> Decoder for TupleDecoder<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>, Option<C5::Item>, Option<C6::Item>, Option<C7::Item>, Option<C8::Item>, Option<C9::Item>, Option<C10::Item>, Option<C11::Item>, Option<C12::Item>, Option<C13::Item>, Option<C14::Item>)>
where E: From<Error>, C0: Decoder<Error = E>, C1: Decoder<Error = E>, C2: Decoder<Error = E>, C3: Decoder<Error = E>, C4: Decoder<Error = E>, C5: Decoder<Error = E>, C6: Decoder<Error = E>, C7: Decoder<Error = E>, C8: Decoder<Error = E>, C9: Decoder<Error = E>, C10: Decoder<Error = E>, C11: Decoder<Error = E>, C12: Decoder<Error = E>, C13: Decoder<Error = E>, C14: Decoder<Error = E>,

source§

type Error = E

The type of unrecoverable frame decoding errors. Read more
source§

type Item = (<C0 as Decoder>::Item, <C1 as Decoder>::Item, <C2 as Decoder>::Item, <C3 as Decoder>::Item, <C4 as Decoder>::Item, <C5 as Decoder>::Item, <C6 as Decoder>::Item, <C7 as Decoder>::Item, <C8 as Decoder>::Item, <C9 as Decoder>::Item, <C10 as Decoder>::Item, <C11 as Decoder>::Item, <C12 as Decoder>::Item, <C13 as Decoder>::Item, <C14 as Decoder>::Item)

The type of decoded frames.
source§

fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

Attempts to decode a frame from the provided buffer of bytes. Read more
source§

fn decode_eof( &mut self, buf: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more
source§

fn framed<T>(self, io: T) -> Framed<T, Self>
where T: AsyncRead + AsyncWrite, Self: Sized,

Provides a Stream and Sink interface for reading and writing to this Io object, using Decode and Encode to read and write the raw data. Read more
source§

impl<E, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14, C15> Decoder for TupleDecoder<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14, C15), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>, Option<C5::Item>, Option<C6::Item>, Option<C7::Item>, Option<C8::Item>, Option<C9::Item>, Option<C10::Item>, Option<C11::Item>, Option<C12::Item>, Option<C13::Item>, Option<C14::Item>, Option<C15::Item>)>
where E: From<Error>, C0: Decoder<Error = E>, C1: Decoder<Error = E>, C2: Decoder<Error = E>, C3: Decoder<Error = E>, C4: Decoder<Error = E>, C5: Decoder<Error = E>, C6: Decoder<Error = E>, C7: Decoder<Error = E>, C8: Decoder<Error = E>, C9: Decoder<Error = E>, C10: Decoder<Error = E>, C11: Decoder<Error = E>, C12: Decoder<Error = E>, C13: Decoder<Error = E>, C14: Decoder<Error = E>, C15: Decoder<Error = E>,

source§

type Error = E

The type of unrecoverable frame decoding errors. Read more
source§

type Item = (<C0 as Decoder>::Item, <C1 as Decoder>::Item, <C2 as Decoder>::Item, <C3 as Decoder>::Item, <C4 as Decoder>::Item, <C5 as Decoder>::Item, <C6 as Decoder>::Item, <C7 as Decoder>::Item, <C8 as Decoder>::Item, <C9 as Decoder>::Item, <C10 as Decoder>::Item, <C11 as Decoder>::Item, <C12 as Decoder>::Item, <C13 as Decoder>::Item, <C14 as Decoder>::Item, <C15 as Decoder>::Item)

The type of decoded frames.
source§

fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

Attempts to decode a frame from the provided buffer of bytes. Read more
source§

fn decode_eof( &mut self, buf: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>

A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more
source§

fn framed<T>(self, io: T) -> Framed<T, Self>
where T: AsyncRead + AsyncWrite, Self: Sized,

Provides a Stream and Sink interface for reading and writing to this Io object, using Decode and Encode to read and write the raw data. Read more
source§

impl<C0> Default for TupleDecoder<(C0,), (Option<C0::Item>,)>
where C0: Decoder + Default,

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<C0, C1> Default for TupleDecoder<(C0, C1), (Option<C0::Item>, Option<C1::Item>)>
where C0: Decoder + Default, C1: Decoder + Default,

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<C0, C1, C2> Default for TupleDecoder<(C0, C1, C2), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>)>
where C0: Decoder + Default, C1: Decoder + Default, C2: Decoder + Default,

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<C0, C1, C2, C3> Default for TupleDecoder<(C0, C1, C2, C3), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>)>
where C0: Decoder + Default, C1: Decoder + Default, C2: Decoder + Default, C3: Decoder + Default,

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<C0, C1, C2, C3, C4> Default for TupleDecoder<(C0, C1, C2, C3, C4), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>)>
where C0: Decoder + Default, C1: Decoder + Default, C2: Decoder + Default, C3: Decoder + Default, C4: Decoder + Default,

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<C0, C1, C2, C3, C4, C5> Default for TupleDecoder<(C0, C1, C2, C3, C4, C5), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>, Option<C5::Item>)>
where C0: Decoder + Default, C1: Decoder + Default, C2: Decoder + Default, C3: Decoder + Default, C4: Decoder + Default, C5: Decoder + Default,

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<C0, C1, C2, C3, C4, C5, C6> Default for TupleDecoder<(C0, C1, C2, C3, C4, C5, C6), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>, Option<C5::Item>, Option<C6::Item>)>
where C0: Decoder + Default, C1: Decoder + Default, C2: Decoder + Default, C3: Decoder + Default, C4: Decoder + Default, C5: Decoder + Default, C6: Decoder + Default,

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<C0, C1, C2, C3, C4, C5, C6, C7> Default for TupleDecoder<(C0, C1, C2, C3, C4, C5, C6, C7), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>, Option<C5::Item>, Option<C6::Item>, Option<C7::Item>)>
where C0: Decoder + Default, C1: Decoder + Default, C2: Decoder + Default, C3: Decoder + Default, C4: Decoder + Default, C5: Decoder + Default, C6: Decoder + Default, C7: Decoder + Default,

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<C0, C1, C2, C3, C4, C5, C6, C7, C8> Default for TupleDecoder<(C0, C1, C2, C3, C4, C5, C6, C7, C8), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>, Option<C5::Item>, Option<C6::Item>, Option<C7::Item>, Option<C8::Item>)>
where C0: Decoder + Default, C1: Decoder + Default, C2: Decoder + Default, C3: Decoder + Default, C4: Decoder + Default, C5: Decoder + Default, C6: Decoder + Default, C7: Decoder + Default, C8: Decoder + Default,

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<C0, C1, C2, C3, C4, C5, C6, C7, C8, C9> Default for TupleDecoder<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>, Option<C5::Item>, Option<C6::Item>, Option<C7::Item>, Option<C8::Item>, Option<C9::Item>)>
where C0: Decoder + Default, C1: Decoder + Default, C2: Decoder + Default, C3: Decoder + Default, C4: Decoder + Default, C5: Decoder + Default, C6: Decoder + Default, C7: Decoder + Default, C8: Decoder + Default, C9: Decoder + Default,

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10> Default for TupleDecoder<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>, Option<C5::Item>, Option<C6::Item>, Option<C7::Item>, Option<C8::Item>, Option<C9::Item>, Option<C10::Item>)>
where C0: Decoder + Default, C1: Decoder + Default, C2: Decoder + Default, C3: Decoder + Default, C4: Decoder + Default, C5: Decoder + Default, C6: Decoder + Default, C7: Decoder + Default, C8: Decoder + Default, C9: Decoder + Default, C10: Decoder + Default,

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11> Default for TupleDecoder<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>, Option<C5::Item>, Option<C6::Item>, Option<C7::Item>, Option<C8::Item>, Option<C9::Item>, Option<C10::Item>, Option<C11::Item>)>
where C0: Decoder + Default, C1: Decoder + Default, C2: Decoder + Default, C3: Decoder + Default, C4: Decoder + Default, C5: Decoder + Default, C6: Decoder + Default, C7: Decoder + Default, C8: Decoder + Default, C9: Decoder + Default, C10: Decoder + Default, C11: Decoder + Default,

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12> Default for TupleDecoder<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>, Option<C5::Item>, Option<C6::Item>, Option<C7::Item>, Option<C8::Item>, Option<C9::Item>, Option<C10::Item>, Option<C11::Item>, Option<C12::Item>)>
where C0: Decoder + Default, C1: Decoder + Default, C2: Decoder + Default, C3: Decoder + Default, C4: Decoder + Default, C5: Decoder + Default, C6: Decoder + Default, C7: Decoder + Default, C8: Decoder + Default, C9: Decoder + Default, C10: Decoder + Default, C11: Decoder + Default, C12: Decoder + Default,

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13> Default for TupleDecoder<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>, Option<C5::Item>, Option<C6::Item>, Option<C7::Item>, Option<C8::Item>, Option<C9::Item>, Option<C10::Item>, Option<C11::Item>, Option<C12::Item>, Option<C13::Item>)>
where C0: Decoder + Default, C1: Decoder + Default, C2: Decoder + Default, C3: Decoder + Default, C4: Decoder + Default, C5: Decoder + Default, C6: Decoder + Default, C7: Decoder + Default, C8: Decoder + Default, C9: Decoder + Default, C10: Decoder + Default, C11: Decoder + Default, C12: Decoder + Default, C13: Decoder + Default,

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14> Default for TupleDecoder<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>, Option<C5::Item>, Option<C6::Item>, Option<C7::Item>, Option<C8::Item>, Option<C9::Item>, Option<C10::Item>, Option<C11::Item>, Option<C12::Item>, Option<C13::Item>, Option<C14::Item>)>
where C0: Decoder + Default, C1: Decoder + Default, C2: Decoder + Default, C3: Decoder + Default, C4: Decoder + Default, C5: Decoder + Default, C6: Decoder + Default, C7: Decoder + Default, C8: Decoder + Default, C9: Decoder + Default, C10: Decoder + Default, C11: Decoder + Default, C12: Decoder + Default, C13: Decoder + Default, C14: Decoder + Default,

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14, C15> Default for TupleDecoder<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14, C15), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>, Option<C4::Item>, Option<C5::Item>, Option<C6::Item>, Option<C7::Item>, Option<C8::Item>, Option<C9::Item>, Option<C10::Item>, Option<C11::Item>, Option<C12::Item>, Option<C13::Item>, Option<C14::Item>, Option<C15::Item>)>
where C0: Decoder + Default, C1: Decoder + Default, C2: Decoder + Default, C3: Decoder + Default, C4: Decoder + Default, C5: Decoder + Default, C6: Decoder + Default, C7: Decoder + Default, C8: Decoder + Default, C9: Decoder + Default, C10: Decoder + Default, C11: Decoder + Default, C12: Decoder + Default, C13: Decoder + Default, C14: Decoder + Default, C15: Decoder + Default,

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<C, V> Freeze for TupleDecoder<C, V>
where C: Freeze, V: Freeze,

§

impl<C, V> RefUnwindSafe for TupleDecoder<C, V>

§

impl<C, V> Send for TupleDecoder<C, V>
where C: Send, V: Send,

§

impl<C, V> Sync for TupleDecoder<C, V>
where C: Sync, V: Sync,

§

impl<C, V> Unpin for TupleDecoder<C, V>
where C: Unpin, V: Unpin,

§

impl<C, V> UnwindSafe for TupleDecoder<C, V>
where C: UnwindSafe, V: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more