Trait pbcodec::traits::Decode
[−]
[src]
pub trait Decode<R: Read>: Sized { type Future: Future<Item = (R, Self), Error = Error<R>>; fn decode(reader: R) -> Self::Future; fn decode_into<T>(reader: R) -> DecodeInto<R, Self, T>
where
T: From<Self>, { ... } fn decode_try_into<T>(reader: R) -> DecodeTryInto<R, Self, T>
where
T: TryFrom<Self>, { ... } }
Associated Types
Required Methods
Provided Methods
fn decode_into<T>(reader: R) -> DecodeInto<R, Self, T> where
T: From<Self>,
T: From<Self>,
fn decode_try_into<T>(reader: R) -> DecodeTryInto<R, Self, T> where
T: TryFrom<Self>,
T: TryFrom<Self>,
Implementors
impl<R, T> Decode<R> for Embedded<T> where
R: Read,
T: Message,
T::Base: Decode<Take<R>>,impl<R, A> Decode<R> for (A,) where
R: Read,
A: DecodeField<R>,impl<R, A, B> Decode<R> for (A, B) where
R: Read,
A: DecodeField<R>,
B: DecodeField<R>,impl<R, A, B, C> Decode<R> for (A, B, C) where
R: Read,
A: DecodeField<R>,
B: DecodeField<R>,
C: DecodeField<R>,impl<R, A, B, C, D> Decode<R> for (A, B, C, D) where
R: Read,
A: DecodeField<R>,
B: DecodeField<R>,
C: DecodeField<R>,
D: DecodeField<R>,impl<R, A, B, C, D, E> Decode<R> for (A, B, C, D, E) where
R: Read,
A: DecodeField<R>,
B: DecodeField<R>,
C: DecodeField<R>,
D: DecodeField<R>,
E: DecodeField<R>,impl<R, A, B, C, D, E, F> Decode<R> for (A, B, C, D, E, F) where
R: Read,
A: DecodeField<R>,
B: DecodeField<R>,
C: DecodeField<R>,
D: DecodeField<R>,
E: DecodeField<R>,
F: DecodeField<R>,impl<R, A, B, C, D, E, F, G> Decode<R> for (A, B, C, D, E, F, G) where
R: Read,
A: DecodeField<R>,
B: DecodeField<R>,
C: DecodeField<R>,
D: DecodeField<R>,
E: DecodeField<R>,
F: DecodeField<R>,
G: DecodeField<R>,impl<R, A, B, C, D, E, F, G, H> Decode<R> for (A, B, C, D, E, F, G, H) where
R: Read,
A: DecodeField<R>,
B: DecodeField<R>,
C: DecodeField<R>,
D: DecodeField<R>,
E: DecodeField<R>,
F: DecodeField<R>,
G: DecodeField<R>,
H: DecodeField<R>,impl<R: Read> Decode<R> for [u8; 4]
impl<R: Read> Decode<R> for [u8; 8]
impl<R: Read> Decode<R> for Vec<u8>
impl<R: Read> Decode<R> for Bool
impl<R: Read> Decode<R> for Uint32
impl<R: Read> Decode<R> for Uint64
impl<R: Read> Decode<R> for Int32
impl<R: Read> Decode<R> for Int64
impl<R: Read> Decode<R> for Sint32
impl<R: Read> Decode<R> for Sint64
impl<R: Read> Decode<R> for Fixed32
impl<R: Read> Decode<R> for Fixed64
impl<R: Read> Decode<R> for Sfixed32
impl<R: Read> Decode<R> for Sfixed64
impl<R: Read> Decode<R> for Float
impl<R: Read> Decode<R> for Double
impl<R: Read> Decode<R> for Bytes
impl<R: Read> Decode<R> for Str
impl<R: Read> Decode<R> for Bit32
impl<R: Read> Decode<R> for Bit64
impl<R: Read> Decode<R> for Varint
impl<R, T> Decode<R> for LengthDelimited<T> where
R: Read,
T: Decode<Take<R>>,