pub enum CompactError<E = Infallible> {
Expand(ExpandError<E>),
ContextProcessing(Error<E>),
Compaction(Error<E>),
Loading(LoadError<E>),
ContextLoading(ContextLoadError<E>),
}Expand description
Error that can be raised by the JsonLdProcessor::compact function.
Variants§
Expand(ExpandError<E>)
Document expansion failed.
ContextProcessing(Error<E>)
Context processing failed.
Compaction(Error<E>)
Document compaction failed.
Loading(LoadError<E>)
Remote document loading failed.
ContextLoading(ContextLoadError<E>)
A context referenced by the document could not be loaded.
Implementations§
Trait Implementations§
Source§impl<E: Debug> Debug for CompactError<E>
impl<E: Debug> Debug for CompactError<E>
Source§impl<E> Display for CompactError<E>where
ExpandError<E>: Display,
Error<E>: Display,
Error<E>: Display,
LoadError<E>: Display,
ContextLoadError<E>: Display,
impl<E> Display for CompactError<E>where
ExpandError<E>: Display,
Error<E>: Display,
Error<E>: Display,
LoadError<E>: Display,
ContextLoadError<E>: Display,
Source§impl<E> Error for CompactError<E>
impl<E> Error for CompactError<E>
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<I, B, E> From<CompactError<E>> for FlattenError<I, B, E>
impl<I, B, E> From<CompactError<E>> for FlattenError<I, B, E>
Source§fn from(e: CompactError<E>) -> Self
fn from(e: CompactError<E>) -> Self
Converts to this type from the input type.
Source§impl<E> From<CompactError<E>> for JsonLdError<E>
impl<E> From<CompactError<E>> for JsonLdError<E>
Source§fn from(source: CompactError<E>) -> Self
fn from(source: CompactError<E>) -> Self
Converts to this type from the input type.
Source§impl<E> From<ContextLoadError<E>> for CompactError<E>
impl<E> From<ContextLoadError<E>> for CompactError<E>
Source§fn from(e: ContextLoadError<E>) -> Self
fn from(e: ContextLoadError<E>) -> Self
Converts to this type from the input type.
Source§impl<E> From<Error<E>> for CompactError<E>
impl<E> From<Error<E>> for CompactError<E>
Source§impl<E> From<Error<E>> for CompactError<E>
impl<E> From<Error<E>> for CompactError<E>
Source§impl<E> From<ExpandError<E>> for CompactError<E>
impl<E> From<ExpandError<E>> for CompactError<E>
Source§fn from(e: ExpandError<E>) -> Self
fn from(e: ExpandError<E>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for CompactError<E>where
ExpandError<E>: Freeze,
Error<E>: Freeze,
Error<E>: Freeze,
LoadError<E>: Freeze,
ContextLoadError<E>: Freeze,
impl<E> RefUnwindSafe for CompactError<E>where
ExpandError<E>: RefUnwindSafe,
Error<E>: RefUnwindSafe,
Error<E>: RefUnwindSafe,
LoadError<E>: RefUnwindSafe,
ContextLoadError<E>: RefUnwindSafe,
impl<E> Send for CompactError<E>where
ExpandError<E>: Send,
Error<E>: Send,
Error<E>: Send,
LoadError<E>: Send,
ContextLoadError<E>: Send,
impl<E> Sync for CompactError<E>where
ExpandError<E>: Sync,
Error<E>: Sync,
Error<E>: Sync,
LoadError<E>: Sync,
ContextLoadError<E>: Sync,
impl<E> Unpin for CompactError<E>where
ExpandError<E>: Unpin,
Error<E>: Unpin,
Error<E>: Unpin,
LoadError<E>: Unpin,
ContextLoadError<E>: Unpin,
impl<E> UnsafeUnpin for CompactError<E>where
ExpandError<E>: UnsafeUnpin,
Error<E>: UnsafeUnpin,
Error<E>: UnsafeUnpin,
LoadError<E>: UnsafeUnpin,
ContextLoadError<E>: UnsafeUnpin,
impl<E> UnwindSafe for CompactError<E>where
ExpandError<E>: UnwindSafe,
Error<E>: UnwindSafe,
Error<E>: UnwindSafe,
LoadError<E>: UnwindSafe,
ContextLoadError<E>: UnwindSafe,
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Views this value as an
Unordered reference.impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more