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]

Returns the required buffer capacity to encode the message.

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for EncodeError
[src]

Formats the value using the given formatter. Read more

impl PartialEq for EncodeError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for EncodeError
[src]

impl Display for EncodeError
[src]

Formats the value using the given formatter. Read more

impl Error for EncodeError
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl From<EncodeError> for Error
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for EncodeError

impl Sync for EncodeError