pub struct PhaseError {
pub phase: ErrorPhase,
pub code: &'static str,
pub message: Box<str>,
pub context: Option<Box<PhaseErrorContext>>,
}Expand description
Typed error with explicit processing phase and context.
Fields§
§phase: ErrorPhaseStable processing phase.
code: &'static strStable machine-readable code.
message: Box<str>Human-readable message.
context: Option<Box<PhaseErrorContext>>Optional rich context.
Implementations§
Source§impl PhaseError
impl PhaseError
Trait Implementations§
Source§impl Clone for PhaseError
impl Clone for PhaseError
Source§fn clone(&self) -> PhaseError
fn clone(&self) -> PhaseError
Returns a duplicate of the value. Read more
1.0.0 · 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 PhaseError
impl Debug for PhaseError
Source§impl From<PhaseError> for EpubError
impl From<PhaseError> for EpubError
Source§fn from(err: PhaseError) -> Self
fn from(err: PhaseError) -> Self
Converts to this type from the input type.
Source§impl From<RenderPrepError> for PhaseError
impl From<RenderPrepError> for PhaseError
Source§fn from(err: RenderPrepError) -> Self
fn from(err: RenderPrepError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PhaseError
impl PartialEq for PhaseError
impl Eq for PhaseError
impl StructuralPartialEq for PhaseError
Auto Trait Implementations§
impl Freeze for PhaseError
impl RefUnwindSafe for PhaseError
impl Send for PhaseError
impl Sync for PhaseError
impl Unpin for PhaseError
impl UnsafeUnpin for PhaseError
impl UnwindSafe for PhaseError
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