Struct prost_amino::error::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]
impl EncodeError
pub fn required_capacity(&self) -> usize
[src]
pub fn required_capacity(&self) -> usize
Returns the required buffer capacity to encode the message.
pub fn remaining(&self) -> usize
[src]
pub fn remaining(&self) -> usize
Returns the remaining length in the provided buffer at the time of encoding.
Trait Implementations
impl Copy for EncodeError
[src]
impl Copy for EncodeError
impl Clone for EncodeError
[src]
impl Clone for EncodeError
fn clone(&self) -> EncodeError
[src]
fn clone(&self) -> EncodeError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for EncodeError
[src]
impl Debug for EncodeError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for EncodeError
[src]
impl PartialEq for EncodeError
fn eq(&self, other: &EncodeError) -> bool
[src]
fn eq(&self, other: &EncodeError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &EncodeError) -> bool
[src]
fn ne(&self, other: &EncodeError) -> bool
This method tests for !=
.
impl Eq for EncodeError
[src]
impl Eq for EncodeError
impl Display for EncodeError
[src]
impl Display for EncodeError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for EncodeError
[src]
impl Error for EncodeError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl From<EncodeError> for Error
[src]
impl From<EncodeError> for Error
fn from(error: EncodeError) -> Error
[src]
fn from(error: EncodeError) -> Error
Performs the conversion.
Auto Trait Implementations
impl Send for EncodeError
impl Send for EncodeError
impl Sync for EncodeError
impl Sync for EncodeError