Struct wasm_tokio::cm::TupleDecoder
source · pub struct TupleDecoder<C, V> { /* private fields */ }
Implementations§
source§impl<C, V> TupleDecoder<C, V>
impl<C, V> TupleDecoder<C, V>
pub fn into_inner(self) -> C
Trait Implementations§
source§impl<E, C0> Decoder for TupleDecoder<(C0,), (Option<C0::Item>,)>
impl<E, C0> Decoder for TupleDecoder<(C0,), (Option<C0::Item>,)>
source§fn decode(
&mut self,
src: &mut BytesMut,
) -> Result<Option<Self::Item>, Self::Error>
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§impl<E, C0, C1> Decoder for TupleDecoder<(C0, C1), (Option<C0::Item>, Option<C1::Item>)>
impl<E, C0, C1> Decoder for TupleDecoder<(C0, C1), (Option<C0::Item>, Option<C1::Item>)>
source§fn decode(
&mut self,
src: &mut BytesMut,
) -> Result<Option<Self::Item>, Self::Error>
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§impl<E, C0, C1, C2> Decoder for TupleDecoder<(C0, C1, C2), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>)>
impl<E, C0, C1, C2> Decoder for TupleDecoder<(C0, C1, C2), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>)>
source§type Item = (<C0 as Decoder>::Item, <C1 as Decoder>::Item, <C2 as Decoder>::Item)
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>
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§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>)>
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>)>
source§type Item = (<C0 as Decoder>::Item, <C1 as Decoder>::Item, <C2 as Decoder>::Item, <C3 as Decoder>::Item)
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>
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§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>)>
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>)>
source§type Item = (<C0 as Decoder>::Item, <C1 as Decoder>::Item, <C2 as Decoder>::Item, <C3 as Decoder>::Item, <C4 as Decoder>::Item)
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>
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§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>)>
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>)>
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)
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>
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§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>)>
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>)>
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)
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>
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§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>)>
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>)>
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)
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>
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§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>)>
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>)>
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)
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>
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§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>)>
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>)>
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)
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>
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§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>)>
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>)>
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)
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>
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§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>,
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 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)
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>
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§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>,
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 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)
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>
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§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>,
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 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)
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>
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§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>,
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 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)
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>
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§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>,
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 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)
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>
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§impl<C0, C1, C2> Default for TupleDecoder<(C0, C1, C2), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>)>
impl<C0, C1, C2> Default for TupleDecoder<(C0, C1, C2), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>)>
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>)>
impl<C0, C1, C2, C3> Default for TupleDecoder<(C0, C1, C2, C3), (Option<C0::Item>, Option<C1::Item>, Option<C2::Item>, Option<C3::Item>)>
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>)>
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>)>
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>)>
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>)>
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>)>
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>)>
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>)>
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>)>
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>)>
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>)>
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>)>
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>)>
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>)>
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>)>
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>)>
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>)>
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,
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§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,
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§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,
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§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,
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,
Auto Trait Implementations§
impl<C, V> Freeze for TupleDecoder<C, V>
impl<C, V> RefUnwindSafe for TupleDecoder<C, V>where
C: RefUnwindSafe,
V: RefUnwindSafe,
impl<C, V> Send for TupleDecoder<C, V>
impl<C, V> Sync for TupleDecoder<C, V>
impl<C, V> Unpin for TupleDecoder<C, V>
impl<C, V> UnwindSafe for TupleDecoder<C, V>where
C: UnwindSafe,
V: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more