Struct copra::codec::ProtobufCodec [] [src]

pub struct ProtobufCodec<T, U> { /* fields omitted */ }

Codec for protobuf messages

Methods

impl<T, U> ProtobufCodec<T, U>
[src]

[src]

Create a new instance of the protobuf codec.

Trait Implementations

impl<T: Clone, U: Clone> Clone for ProtobufCodec<T, U>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug, U: Debug> Debug for ProtobufCodec<T, U>
[src]

[src]

Formats the value using the given formatter.

impl<T, U> MethodCodec for ProtobufCodec<T, U> where
    T: Message + MessageStatic,
    U: Message
[src]

Request message decoded from raw bytes

Response message for encoding to raw bytes

Error during decoding or encoding

[src]

Decode message from bytes.

[src]

Encode message to bytes.