pub enum Error {
Show 13 variants
Cbor(String),
NotCborld(String),
NoTypeTable(u64),
UnsupportedLiteralType(String),
InvalidTermDefinition(String),
ProtectedTermRedefinition(String),
DocumentLoader(String),
UndefinedCompressedContext(u64),
UnknownTermId(u64),
UnknownCompressedValue(u64),
UnrecognizedBytes(String),
InvalidInput(String),
UnsupportedValue(String),
}Expand description
Errors returned by the CBOR-LD processor.
Variants§
Cbor(String)
cbor2 failed to encode, decode, or validate data.
NotCborld(String)
The input is not a CBOR-LD 1.0 tagged value.
NoTypeTable(u64)
A required registry type table was not provided.
UnsupportedLiteralType(String)
The type table contains an unsupported literal type.
InvalidTermDefinition(String)
A JSON-LD term definition is not valid for CBOR-LD processing.
ProtectedTermRedefinition(String)
A protected term was redefined.
DocumentLoader(String)
A remote context was needed but could not be loaded.
UndefinedCompressedContext(u64)
A compressed context could not be resolved.
UnknownTermId(u64)
A compressed term ID could not be resolved.
UnknownCompressedValue(u64)
A compressed table value could not be resolved.
UnrecognizedBytes(String)
A compressed value uses invalid bytes.
InvalidInput(String)
The input shape is invalid for the active CBOR-LD algorithm.
UnsupportedValue(String)
A value cannot be encoded by a required codec.
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
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()
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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