pub enum EncoderError {
DataOverflow,
Interrupted,
InvalidTag,
}
Expand description
Contains error options that can be encountered while performing the encoding operations.
Variants§
DataOverflow
Indicates that the data size limit has been reached.
Interrupted
Indicates that the encoder encountered an I/O interruption. Interrupted operations can typically be retried.
InvalidTag
Indicates that the encoder was unable to proceed due to the key’s
invalid tag number. A tag number must be unique per message and the
value can be between 1
and 2^29 - 1
.
Trait Implementations§
Source§impl Debug for EncoderError
impl Debug for EncoderError
Source§impl Display for EncoderError
impl Display for EncoderError
Source§impl Error for EncoderError
impl Error for EncoderError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for EncoderError
impl From<Error> for EncoderError
Source§impl From<Infallible> for EncoderError
impl From<Infallible> for EncoderError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EncoderError
impl PartialEq for EncoderError
impl StructuralPartialEq for EncoderError
Auto Trait Implementations§
impl Freeze for EncoderError
impl RefUnwindSafe for EncoderError
impl Send for EncoderError
impl Sync for EncoderError
impl Unpin for EncoderError
impl UnwindSafe for EncoderError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more