#[non_exhaustive]pub enum EncoderErrorKind {
InvalidHeader,
InitFailed,
EncodeFailed,
EndHeaderFailed,
FeedFailed,
}Expand description
The kind of encoder error that occurred.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidHeader
The header could not be converted (e.g., invalid UTF-8 or too long).
InitFailed
The C encoder returned an error during initialization.
EncodeFailed
The C encoder returned an error during encoding.
EndHeaderFailed
The C encoder failed to finalize the header block.
FeedFailed
The C encoder returned an error when processing decoder stream data.
Trait Implementations§
Source§impl Clone for EncoderErrorKind
impl Clone for EncoderErrorKind
Source§fn clone(&self) -> EncoderErrorKind
fn clone(&self) -> EncoderErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncoderErrorKind
impl Debug for EncoderErrorKind
Source§impl PartialEq for EncoderErrorKind
impl PartialEq for EncoderErrorKind
impl Copy for EncoderErrorKind
impl Eq for EncoderErrorKind
impl StructuralPartialEq for EncoderErrorKind
Auto Trait Implementations§
impl Freeze for EncoderErrorKind
impl RefUnwindSafe for EncoderErrorKind
impl Send for EncoderErrorKind
impl Sync for EncoderErrorKind
impl Unpin for EncoderErrorKind
impl UnsafeUnpin for EncoderErrorKind
impl UnwindSafe for EncoderErrorKind
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