pub struct NeuErrImpl { /* private fields */ }Implementations§
Source§impl NeuErrImpl
impl NeuErrImpl
Sourcepub const fn wrap(self) -> NeuErr
pub const fn wrap(self) -> NeuErr
Wrap this error back into a NeuErr that offers all of the functionality.
Sourcepub fn attach<C>(self, context: C) -> Selfwhere
C: AnyDebugSendSync + 'static,
pub fn attach<C>(self, context: C) -> Selfwhere
C: AnyDebugSendSync + 'static,
Add machine context to the error.
This will not override existing attachments. If you want to replace and override any
existing attachments of the same type, use attach_override instead.
Sourcepub fn attach_override<C>(self, context: C) -> Selfwhere
C: AnyDebugSendSync + 'static,
pub fn attach_override<C>(self, context: C) -> Selfwhere
C: AnyDebugSendSync + 'static,
Set machine context in the error.
This will override existing attachments of the same type. If you want to add attachments of
the same type, use attach instead.
Sourcepub fn attachments<C>(&self) -> impl Iterator<Item = &C>where
C: AnyDebugSendSync + 'static,
pub fn attachments<C>(&self) -> impl Iterator<Item = &C>where
C: AnyDebugSendSync + 'static,
Get an iterator over the machine context attachments of the given type.
Sourcepub fn attachment<C>(&self) -> Option<&C>where
C: AnyDebugSendSync + 'static,
pub fn attachment<C>(&self) -> Option<&C>where
C: AnyDebugSendSync + 'static,
Get the machine context attachment of the given type.
Trait Implementations§
Source§impl Debug for NeuErrImpl
impl Debug for NeuErrImpl
Source§impl Default for NeuErrImpl
impl Default for NeuErrImpl
Source§fn default() -> NeuErrImpl
fn default() -> NeuErrImpl
Returns the “default value” for a type. Read more
Source§impl Display for NeuErrImpl
impl Display for NeuErrImpl
Source§impl Error for NeuErrImpl
impl Error for NeuErrImpl
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 From<NeuErr> for NeuErrImpl
impl From<NeuErr> for NeuErrImpl
Source§impl Termination for NeuErrImpl
Available on crate feature std only.
impl Termination for NeuErrImpl
Available on crate feature
std only.Auto Trait Implementations§
impl Freeze for NeuErrImpl
impl !RefUnwindSafe for NeuErrImpl
impl Send for NeuErrImpl
impl Sync for NeuErrImpl
impl Unpin for NeuErrImpl
impl !UnwindSafe for NeuErrImpl
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