#[non_exhaustive]pub enum TypeCodecError {
Encode(EncodeError),
Decode(DecodeError),
UnknownTypeKind {
kind: u8,
},
}Expand description
Fehler beim Encoden/Decoden von TypeObject / TypeIdentifier.
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.
Encode(EncodeError)
Wire-Encode-Fehler aus dem CDR-Layer.
Decode(DecodeError)
Wire-Decode-Fehler.
UnknownTypeKind
Unbekannter TypeKind-Diskriminator beim Decoden.
Trait Implementations§
Source§impl Clone for TypeCodecError
impl Clone for TypeCodecError
Source§fn clone(&self) -> TypeCodecError
fn clone(&self) -> TypeCodecError
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 moreSource§impl Debug for TypeCodecError
impl Debug for TypeCodecError
Source§impl Display for TypeCodecError
impl Display for TypeCodecError
Source§impl Error for TypeCodecError
Available on crate feature std only.
impl Error for TypeCodecError
Available on crate feature
std only.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<DecodeError> for TypeCodecError
impl From<DecodeError> for TypeCodecError
Source§fn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<EncodeError> for TypeCodecError
impl From<EncodeError> for TypeCodecError
Source§fn from(e: EncodeError) -> Self
fn from(e: EncodeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TypeCodecError
impl PartialEq for TypeCodecError
Source§fn eq(&self, other: &TypeCodecError) -> bool
fn eq(&self, other: &TypeCodecError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TypeCodecError
impl StructuralPartialEq for TypeCodecError
Auto Trait Implementations§
impl Freeze for TypeCodecError
impl RefUnwindSafe for TypeCodecError
impl Send for TypeCodecError
impl Sync for TypeCodecError
impl Unpin for TypeCodecError
impl UnsafeUnpin for TypeCodecError
impl UnwindSafe for TypeCodecError
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