[][src]Struct protobuf::types::ProtobufTypeMessage

pub struct ProtobufTypeMessage<M: Message>(_);

Trait Implementations

impl<M: Message + MessageStatic + ProtobufValue> ProtobufType for ProtobufTypeMessage<M>[src]

type Value = M

fn compute_size_with_length_delimiter(value: &Self::Value) -> u32[src]

Compute size adding length prefix if wire type is length delimited (i. e. string, bytes, message) Read more

fn get_from_unknown(_unknown_values: &UnknownValues) -> Option<Self::Value>[src]

fn get_cached_size_with_length_delimiter(value: &Self::Value) -> u32[src]

Get previously cached size with length prefix

Auto Trait Implementations

impl<M> Send for ProtobufTypeMessage<M>

impl<M> Sync for ProtobufTypeMessage<M>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]