Struct bytecodec::combinator::DecoderChain
[−]
[src]
pub struct DecoderChain<D0, D1, T>(_);
Combinator for connecting decoders to a chain.
This is created by calling StartDecoderChain::chain
or DecodeExt::chain
methods.
Trait Implementations
impl<D0: Debug, D1: Debug, T: Debug> Debug for DecoderChain<D0, D1, T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<D> Decode for DecoderChain<StartDecoderChain, D, ()> where
D: Decode,
[src]
D: Decode,
type Item = (D::Item,)
The type of items to be decoded.
fn decode(&mut self, buf: &mut DecodeBuf) -> Result<Option<Self::Item>>
[src]
Consumes the given buffer (a part of a byte sequence), and decodes an item from it. Read more
fn has_terminated(&self) -> bool
[src]
Returns true
if the decoder cannot decode items anymore, otherwise false
. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if the decoder does not have an item that being decoded, otherwise false
.
fn requiring_bytes_hint(&self) -> Option<u64>
[src]
Returns the lower bound of the number of bytes needed to decode the next item. Read more
impl<D0, D1, T0> Decode for DecoderChain<D0, D1, (T0,)> where
D0: Decode<Item = (T0,)>,
D1: Decode,
[src]
D0: Decode<Item = (T0,)>,
D1: Decode,
type Item = (T0, D1::Item)
The type of items to be decoded.
fn decode(&mut self, buf: &mut DecodeBuf) -> Result<Option<Self::Item>>
[src]
Consumes the given buffer (a part of a byte sequence), and decodes an item from it. Read more
fn has_terminated(&self) -> bool
[src]
Returns true
if the decoder cannot decode items anymore, otherwise false
. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if the decoder does not have an item that being decoded, otherwise false
.
fn requiring_bytes_hint(&self) -> Option<u64>
[src]
Returns the lower bound of the number of bytes needed to decode the next item. Read more
impl<D0, D1, T0, T1> Decode for DecoderChain<D0, D1, (T0, T1)> where
D0: Decode<Item = (T0, T1)>,
D1: Decode,
[src]
D0: Decode<Item = (T0, T1)>,
D1: Decode,
type Item = (T0, T1, D1::Item)
The type of items to be decoded.
fn decode(&mut self, buf: &mut DecodeBuf) -> Result<Option<Self::Item>>
[src]
Consumes the given buffer (a part of a byte sequence), and decodes an item from it. Read more
fn has_terminated(&self) -> bool
[src]
Returns true
if the decoder cannot decode items anymore, otherwise false
. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if the decoder does not have an item that being decoded, otherwise false
.
fn requiring_bytes_hint(&self) -> Option<u64>
[src]
Returns the lower bound of the number of bytes needed to decode the next item. Read more
impl<D0, D1, T0, T1, T2> Decode for DecoderChain<D0, D1, (T0, T1, T2)> where
D0: Decode<Item = (T0, T1, T2)>,
D1: Decode,
[src]
D0: Decode<Item = (T0, T1, T2)>,
D1: Decode,
type Item = (T0, T1, T2, D1::Item)
The type of items to be decoded.
fn decode(&mut self, buf: &mut DecodeBuf) -> Result<Option<Self::Item>>
[src]
Consumes the given buffer (a part of a byte sequence), and decodes an item from it. Read more
fn has_terminated(&self) -> bool
[src]
Returns true
if the decoder cannot decode items anymore, otherwise false
. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if the decoder does not have an item that being decoded, otherwise false
.
fn requiring_bytes_hint(&self) -> Option<u64>
[src]
Returns the lower bound of the number of bytes needed to decode the next item. Read more
impl<D0, D1, T0, T1, T2, T3> Decode for DecoderChain<D0, D1, (T0, T1, T2, T3)> where
D0: Decode<Item = (T0, T1, T2, T3)>,
D1: Decode,
[src]
D0: Decode<Item = (T0, T1, T2, T3)>,
D1: Decode,
type Item = (T0, T1, T2, T3, D1::Item)
The type of items to be decoded.
fn decode(&mut self, buf: &mut DecodeBuf) -> Result<Option<Self::Item>>
[src]
Consumes the given buffer (a part of a byte sequence), and decodes an item from it. Read more
fn has_terminated(&self) -> bool
[src]
Returns true
if the decoder cannot decode items anymore, otherwise false
. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if the decoder does not have an item that being decoded, otherwise false
.
fn requiring_bytes_hint(&self) -> Option<u64>
[src]
Returns the lower bound of the number of bytes needed to decode the next item. Read more
impl<D0, D1, T0, T1, T2, T3, T4> Decode for DecoderChain<D0, D1, (T0, T1, T2, T3, T4)> where
D0: Decode<Item = (T0, T1, T2, T3, T4)>,
D1: Decode,
[src]
D0: Decode<Item = (T0, T1, T2, T3, T4)>,
D1: Decode,
type Item = (T0, T1, T2, T3, T4, D1::Item)
The type of items to be decoded.
fn decode(&mut self, buf: &mut DecodeBuf) -> Result<Option<Self::Item>>
[src]
Consumes the given buffer (a part of a byte sequence), and decodes an item from it. Read more
fn has_terminated(&self) -> bool
[src]
Returns true
if the decoder cannot decode items anymore, otherwise false
. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if the decoder does not have an item that being decoded, otherwise false
.
fn requiring_bytes_hint(&self) -> Option<u64>
[src]
Returns the lower bound of the number of bytes needed to decode the next item. Read more
impl<D0, D1, T0, T1, T2, T3, T4, T5> Decode for DecoderChain<D0, D1, (T0, T1, T2, T3, T4, T5)> where
D0: Decode<Item = (T0, T1, T2, T3, T4, T5)>,
D1: Decode,
[src]
D0: Decode<Item = (T0, T1, T2, T3, T4, T5)>,
D1: Decode,
type Item = (T0, T1, T2, T3, T4, T5, D1::Item)
The type of items to be decoded.
fn decode(&mut self, buf: &mut DecodeBuf) -> Result<Option<Self::Item>>
[src]
Consumes the given buffer (a part of a byte sequence), and decodes an item from it. Read more
fn has_terminated(&self) -> bool
[src]
Returns true
if the decoder cannot decode items anymore, otherwise false
. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if the decoder does not have an item that being decoded, otherwise false
.
fn requiring_bytes_hint(&self) -> Option<u64>
[src]
Returns the lower bound of the number of bytes needed to decode the next item. Read more
impl<D0, D1, T0, T1, T2, T3, T4, T5, T6> Decode for DecoderChain<D0, D1, (T0, T1, T2, T3, T4, T5, T6)> where
D0: Decode<Item = (T0, T1, T2, T3, T4, T5, T6)>,
D1: Decode,
[src]
D0: Decode<Item = (T0, T1, T2, T3, T4, T5, T6)>,
D1: Decode,
type Item = (T0, T1, T2, T3, T4, T5, T6, D1::Item)
The type of items to be decoded.
fn decode(&mut self, buf: &mut DecodeBuf) -> Result<Option<Self::Item>>
[src]
Consumes the given buffer (a part of a byte sequence), and decodes an item from it. Read more
fn has_terminated(&self) -> bool
[src]
Returns true
if the decoder cannot decode items anymore, otherwise false
. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if the decoder does not have an item that being decoded, otherwise false
.
fn requiring_bytes_hint(&self) -> Option<u64>
[src]
Returns the lower bound of the number of bytes needed to decode the next item. Read more
Auto Trait Implementations
impl<D0, D1, T> Send for DecoderChain<D0, D1, T> where
D0: Send,
D1: Send,
T: Send,
D0: Send,
D1: Send,
T: Send,
impl<D0, D1, T> Sync for DecoderChain<D0, D1, T> where
D0: Sync,
D1: Sync,
T: Sync,
D0: Sync,
D1: Sync,
T: Sync,