pub enum TranscodeDecodeEngineError<C, H> {
Codec(CodecDecodeError<C>),
Hook(H),
}Expand description
Error reported by crate::TranscodeDecodeEngine.
This type keeps codec lifecycle failures separate from policy hook failures. Facade adapters may flatten both branches when they intentionally use the same public domain error type for codec and hook failures.
§Type Parameters
C: Codec decode error type.H: Decode hook error type.
Variants§
Codec(CodecDecodeError<C>)
The wrapped codec failed during decode lifecycle work.
Hook(H)
The decode policy hook rejected or failed input.
Implementations§
Source§impl<C, H> TranscodeDecodeEngineError<C, H>
impl<C, H> TranscodeDecodeEngineError<C, H>
Sourcepub const fn codec(error: CodecDecodeError<C>) -> Self
pub const fn codec(error: CodecDecodeError<C>) -> Self
Trait Implementations§
Source§impl<C: Clone, H: Clone> Clone for TranscodeDecodeEngineError<C, H>
impl<C: Clone, H: Clone> Clone for TranscodeDecodeEngineError<C, H>
Source§fn clone(&self) -> TranscodeDecodeEngineError<C, H>
fn clone(&self) -> TranscodeDecodeEngineError<C, H>
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<C: Copy, H: Copy> Copy for TranscodeDecodeEngineError<C, H>
Source§impl<C, H> Display for TranscodeDecodeEngineError<C, H>
impl<C, H> Display for TranscodeDecodeEngineError<C, H>
impl<C: Eq, H: Eq> Eq for TranscodeDecodeEngineError<C, H>
Source§impl<C, H> Error for TranscodeDecodeEngineError<C, H>
impl<C, H> Error for TranscodeDecodeEngineError<C, H>
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<C: PartialEq, H: PartialEq> PartialEq for TranscodeDecodeEngineError<C, H>
impl<C: PartialEq, H: PartialEq> PartialEq for TranscodeDecodeEngineError<C, H>
Source§fn eq(&self, other: &TranscodeDecodeEngineError<C, H>) -> bool
fn eq(&self, other: &TranscodeDecodeEngineError<C, H>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<C: PartialEq, H: PartialEq> StructuralPartialEq for TranscodeDecodeEngineError<C, H>
Auto Trait Implementations§
impl<C, H> Freeze for TranscodeDecodeEngineError<C, H>
impl<C, H> RefUnwindSafe for TranscodeDecodeEngineError<C, H>where
H: RefUnwindSafe,
C: RefUnwindSafe,
impl<C, H> Send for TranscodeDecodeEngineError<C, H>
impl<C, H> Sync for TranscodeDecodeEngineError<C, H>
impl<C, H> Unpin for TranscodeDecodeEngineError<C, H>
impl<C, H> UnsafeUnpin for TranscodeDecodeEngineError<C, H>where
H: UnsafeUnpin,
C: UnsafeUnpin,
impl<C, H> UnwindSafe for TranscodeDecodeEngineError<C, H>where
H: UnwindSafe,
C: 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