pub enum TranscodeEncodeEngineError<C, H> {
Codec(CodecEncodeError<C>),
Hook(H),
}Expand description
Error reported by crate::TranscodeEncodeEngine.
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 encode error type.H: Encode hook error type.
Variants§
Codec(CodecEncodeError<C>)
The wrapped codec failed during encode lifecycle work.
Hook(H)
The encode policy hook rejected or failed a value.
Implementations§
Source§impl<C, H> TranscodeEncodeEngineError<C, H>
impl<C, H> TranscodeEncodeEngineError<C, H>
Sourcepub const fn codec(error: CodecEncodeError<C>) -> Self
pub const fn codec(error: CodecEncodeError<C>) -> Self
Trait Implementations§
Source§impl<C: Clone, H: Clone> Clone for TranscodeEncodeEngineError<C, H>
impl<C: Clone, H: Clone> Clone for TranscodeEncodeEngineError<C, H>
Source§fn clone(&self) -> TranscodeEncodeEngineError<C, H>
fn clone(&self) -> TranscodeEncodeEngineError<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 TranscodeEncodeEngineError<C, H>
Source§impl<C, H> Display for TranscodeEncodeEngineError<C, H>
impl<C, H> Display for TranscodeEncodeEngineError<C, H>
impl<C: Eq, H: Eq> Eq for TranscodeEncodeEngineError<C, H>
Source§impl<C, H> Error for TranscodeEncodeEngineError<C, H>
impl<C, H> Error for TranscodeEncodeEngineError<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 TranscodeEncodeEngineError<C, H>
impl<C: PartialEq, H: PartialEq> PartialEq for TranscodeEncodeEngineError<C, H>
Source§fn eq(&self, other: &TranscodeEncodeEngineError<C, H>) -> bool
fn eq(&self, other: &TranscodeEncodeEngineError<C, H>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<C: PartialEq, H: PartialEq> StructuralPartialEq for TranscodeEncodeEngineError<C, H>
Auto Trait Implementations§
impl<C, H> Freeze for TranscodeEncodeEngineError<C, H>
impl<C, H> RefUnwindSafe for TranscodeEncodeEngineError<C, H>where
H: RefUnwindSafe,
C: RefUnwindSafe,
impl<C, H> Send for TranscodeEncodeEngineError<C, H>
impl<C, H> Sync for TranscodeEncodeEngineError<C, H>
impl<C, H> Unpin for TranscodeEncodeEngineError<C, H>
impl<C, H> UnsafeUnpin for TranscodeEncodeEngineError<C, H>where
H: UnsafeUnpin,
C: UnsafeUnpin,
impl<C, H> UnwindSafe for TranscodeEncodeEngineError<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