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

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

Trait Implementations

impl<M: Message + Clone + 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 for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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