Enum fvm_ipld_encoding::CodecProtocol
source · #[non_exhaustive]pub enum CodecProtocol {
Unsupported,
Cbor,
Raw,
}
Expand description
CodecProtocol defines the protocol in which the data is encoded or decoded
This is used with the encoding errors, to detail the encoding protocol or any other information about how the data was encoded or decoded
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 Debug for CodecProtocol
impl Debug for CodecProtocol
source§impl Display for CodecProtocol
impl Display for CodecProtocol
source§impl PartialEq for CodecProtocol
impl PartialEq for CodecProtocol
source§fn eq(&self, other: &CodecProtocol) -> bool
fn eq(&self, other: &CodecProtocol) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CodecProtocol
impl StructuralPartialEq for CodecProtocol
Auto Trait Implementations§
impl Freeze for CodecProtocol
impl RefUnwindSafe for CodecProtocol
impl Send for CodecProtocol
impl Sync for CodecProtocol
impl Unpin for CodecProtocol
impl UnwindSafe for CodecProtocol
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