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

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

message

Trait Implementations

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

type Value = M

Rust type of value

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_cached_size_with_length_delimiter(value: &Self::Value) -> u32[src]

Get previously cached size with length prefix

Auto Trait Implementations

impl<M> Sync for ProtobufTypeMessage<M>

impl<M> Send for ProtobufTypeMessage<M>

impl<M> Unpin for ProtobufTypeMessage<M> where
    M: Unpin

impl<M> RefUnwindSafe for ProtobufTypeMessage<M> where
    M: RefUnwindSafe

impl<M> UnwindSafe for ProtobufTypeMessage<M> where
    M: UnwindSafe

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]