Struct bytecodec::tuple::Tuple6Decoder
[−]
[src]
pub struct Tuple6Decoder<D0, D1, D2, D3, D4, D5> where
D0: Decode,
D1: Decode,
D2: Decode,
D3: Decode,
D4: Decode,
D5: Decode, { /* fields omitted */ }
Decoder for 6-elements tuples.
Methods
impl<D0, D1, D2, D3, D4, D5> Tuple6Decoder<D0, D1, D2, D3, D4, D5> where
D0: Decode,
D1: Decode,
D2: Decode,
D3: Decode,
D4: Decode,
D5: Decode,
[src]
D0: Decode,
D1: Decode,
D2: Decode,
D3: Decode,
D4: Decode,
D5: Decode,
pub fn new(d0: D0, d1: D1, d2: D2, d3: D3, d4: D4, d5: D5) -> Self
[src]
Makes a new Tuple6Decoder
instance.
pub fn inner_ref(&self) -> (&D0, &D1, &D2, &D3, &D4, &D5)
[src]
Returns references to the inner decoders.
pub fn inner_mut(
&mut self
) -> (&mut D0, &mut D1, &mut D2, &mut D3, &mut D4, &mut D5)
[src]
&mut self
) -> (&mut D0, &mut D1, &mut D2, &mut D3, &mut D4, &mut D5)
Returns mutable references to the inner decoders.
Trait Implementations
impl<D0: Debug, D1: Debug, D2: Debug, D3: Debug, D4: Debug, D5: Debug> Debug for Tuple6Decoder<D0, D1, D2, D3, D4, D5> where
D0: Decode,
D1: Decode,
D2: Decode,
D3: Decode,
D4: Decode,
D5: Decode,
[src]
D0: Decode,
D1: Decode,
D2: Decode,
D3: Decode,
D4: Decode,
D5: Decode,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<D0: Default, D1: Default, D2: Default, D3: Default, D4: Default, D5: Default> Default for Tuple6Decoder<D0, D1, D2, D3, D4, D5> where
D0: Decode,
D1: Decode,
D2: Decode,
D3: Decode,
D4: Decode,
D5: Decode,
[src]
D0: Decode,
D1: Decode,
D2: Decode,
D3: Decode,
D4: Decode,
D5: Decode,
fn default() -> Tuple6Decoder<D0, D1, D2, D3, D4, D5>
[src]
Returns the "default value" for a type. Read more
impl<D0, D1, D2, D3, D4, D5> Decode for Tuple6Decoder<D0, D1, D2, D3, D4, D5> where
D0: Decode,
D1: Decode,
D2: Decode,
D3: Decode,
D4: Decode,
D5: Decode,
[src]
D0: Decode,
D1: Decode,
D2: Decode,
D3: Decode,
D4: Decode,
D5: Decode,
type Item = (D0::Item, D1::Item, D2::Item, D3::Item, D4::Item, D5::Item)
The type of items to be decoded.
fn decode(
&mut self,
buf: &[u8],
eos: Eos
) -> Result<(usize, Option<Self::Item>)>
[src]
&mut self,
buf: &[u8],
eos: Eos
) -> Result<(usize, Option<Self::Item>)>
Consumes the given buffer (a part of a byte sequence), and decodes an item from it. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if there is no item being decoded by the decoder, otherwise false
.
fn requiring_bytes(&self) -> ByteCount
[src]
Returns the lower bound of the number of bytes needed to decode the next item. Read more
Auto Trait Implementations
impl<D0, D1, D2, D3, D4, D5> Send for Tuple6Decoder<D0, D1, D2, D3, D4, D5> where
D0: Send,
D1: Send,
D2: Send,
D3: Send,
D4: Send,
D5: Send,
<D0 as Decode>::Item: Send,
<D1 as Decode>::Item: Send,
<D2 as Decode>::Item: Send,
<D3 as Decode>::Item: Send,
<D4 as Decode>::Item: Send,
D0: Send,
D1: Send,
D2: Send,
D3: Send,
D4: Send,
D5: Send,
<D0 as Decode>::Item: Send,
<D1 as Decode>::Item: Send,
<D2 as Decode>::Item: Send,
<D3 as Decode>::Item: Send,
<D4 as Decode>::Item: Send,
impl<D0, D1, D2, D3, D4, D5> Sync for Tuple6Decoder<D0, D1, D2, D3, D4, D5> where
D0: Sync,
D1: Sync,
D2: Sync,
D3: Sync,
D4: Sync,
D5: Sync,
<D0 as Decode>::Item: Sync,
<D1 as Decode>::Item: Sync,
<D2 as Decode>::Item: Sync,
<D3 as Decode>::Item: Sync,
<D4 as Decode>::Item: Sync,
D0: Sync,
D1: Sync,
D2: Sync,
D3: Sync,
D4: Sync,
D5: Sync,
<D0 as Decode>::Item: Sync,
<D1 as Decode>::Item: Sync,
<D2 as Decode>::Item: Sync,
<D3 as Decode>::Item: Sync,
<D4 as Decode>::Item: Sync,