pub struct TicketMeshError { /* private fields */ }Expand description
Typed ticket-mesh error retained inside the crate’s anyhow::Error result.
Callers can downcast and switch on code() without matching message text.
Implementations§
Source§impl TicketMeshError
impl TicketMeshError
pub fn new(code: TicketMeshErrorCode, message: impl Into<String>) -> Self
pub const fn code(&self) -> TicketMeshErrorCode
Trait Implementations§
Source§impl Debug for TicketMeshError
impl Debug for TicketMeshError
Source§impl Display for TicketMeshError
impl Display for TicketMeshError
Source§impl Error for TicketMeshError
impl Error for TicketMeshError
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()
Auto Trait Implementations§
impl Freeze for TicketMeshError
impl RefUnwindSafe for TicketMeshError
impl Send for TicketMeshError
impl Sync for TicketMeshError
impl Unpin for TicketMeshError
impl UnsafeUnpin for TicketMeshError
impl UnwindSafe for TicketMeshError
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