#[non_exhaustive]pub enum CodecOperation {
Read,
Write,
}Expand description
Identifies whether an error occurred while decoding or encoding data.
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.
Trait Implementations§
Source§impl Clone for CodecOperation
impl Clone for CodecOperation
Source§fn clone(&self) -> CodecOperation
fn clone(&self) -> CodecOperation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CodecOperation
Source§impl Debug for CodecOperation
impl Debug for CodecOperation
Source§impl Display for CodecOperation
Formats an operation as reading or writing.
impl Display for CodecOperation
Formats an operation as reading or writing.
impl Eq for CodecOperation
Source§impl Hash for CodecOperation
impl Hash for CodecOperation
Source§impl PartialEq for CodecOperation
impl PartialEq for CodecOperation
impl StructuralPartialEq for CodecOperation
Auto Trait Implementations§
impl Freeze for CodecOperation
impl RefUnwindSafe for CodecOperation
impl Send for CodecOperation
impl Sync for CodecOperation
impl Unpin for CodecOperation
impl UnsafeUnpin for CodecOperation
impl UnwindSafe for CodecOperation
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