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
[src]
fn decode_into<T>(reader: R) -> DecodeInto<R, Self, T> where
T: From<Self>,
[src]
T: From<Self>,
fn decode_try_into<T>(reader: R) -> DecodeTryInto<R, Self, T> where
T: TryFrom<Self>,
[src]
T: TryFrom<Self>,
impl<W: Write> Encode<W> for Bytes
[src]
type Future = EncodeLengthDelimited<W, Vec<u8>>
fn encode(self, writer: W) -> Self::Future
[src]
fn encoded_size(&self) -> u64
[src]
impl Debug for Bytes
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for Bytes
[src]
impl FieldType for Bytes
[src]
impl From<Vec<u8>> for Bytes
[src]
impl From<Bytes> for Vec<u8>
[src]
impl From<LengthDelimited<Vec<u8>>> for Bytes
[src]
fn from(f: LengthDelimited<Vec<u8>>) -> Self
[src]
Performs the conversion.