Struct conjure_error::WithInstanceId
source · [−]pub struct WithInstanceId<T> { /* private fields */ }Expand description
An ErrorType which wraps another and overrides its instance ID.
Trait Implementations
sourceimpl<T> ErrorType for WithInstanceId<T> where
T: ErrorType,
impl<T> ErrorType for WithInstanceId<T> where
T: ErrorType,
sourcefn instance_id(&self) -> Option<Uuid>
fn instance_id(&self) -> Option<Uuid>
Returns the error’s instance ID, if it stores one. Read more
sourcefn safe_args(&self) -> &'static [&'static str]
fn safe_args(&self) -> &'static [&'static str]
Returns a sorted slice of the names of the error’s safe parameters.
sourcefn with_instance_id(self, instance_id: Uuid) -> WithInstanceId<Self> where
Self: Sized,
fn with_instance_id(self, instance_id: Uuid) -> WithInstanceId<Self> where
Self: Sized,
Wraps the error in another that overrides its instance ID.
Auto Trait Implementations
impl<T> RefUnwindSafe for WithInstanceId<T> where
T: RefUnwindSafe,
impl<T> Send for WithInstanceId<T> where
T: Send,
impl<T> Sync for WithInstanceId<T> where
T: Sync,
impl<T> Unpin for WithInstanceId<T> where
T: Unpin,
impl<T> UnwindSafe for WithInstanceId<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more