Struct pbcodec::types::Bytes
[−]
[src]
pub struct Bytes(pub Vec<u8>);
Trait Implementations
impl<R: Read> Decode<R> for Bytes
[src]
type Future = DecodeInto<R, LengthDelimited<Vec<u8>>, Self>
fn decode(reader: R) -> Self::Future
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>,
impl<W: Write> Encode<W> for Bytes
[src]
type Future = EncodeLengthDelimited<W, Vec<u8>>
fn encode(self, writer: W) -> Self::Future
fn encoded_size(&self) -> u64
impl Debug for Bytes
[src]
impl Default for Bytes
[src]
impl FieldType for Bytes
[src]
impl From<Vec<u8>> for Bytes
[src]
impl From<LengthDelimited<Vec<u8>>> for Bytes
[src]
fn from(f: LengthDelimited<Vec<u8>>) -> Self
Performs the conversion.