Struct prost::EncodeError
[−]
[src]
pub struct EncodeError { /* fields omitted */ }
A Protobuf message encoding error.
EncodeError
always indicates that a message failed to encode because the
provided buffer had insufficient capacity. Message encoding is otherwise
infallible.
Methods
impl EncodeError
[src]
fn required_capacity(&self) -> usize
[src]
Returns the required buffer capacity to encode the message.
fn remaining(&self) -> usize
[src]
Returns the remaining length in the provided buffer at the time of encoding.
Trait Implementations
impl Copy for EncodeError
[src]
impl Clone for EncodeError
[src]
fn clone(&self) -> EncodeError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for EncodeError
[src]
impl PartialEq for EncodeError
[src]
fn eq(&self, __arg_0: &EncodeError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &EncodeError) -> bool
[src]
This method tests for !=
.
impl Eq for EncodeError
[src]
impl Display for EncodeError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more