pub struct WithInstanceId<T> { /* private fields */ }
Expand description
An ErrorType
which wraps another and overrides its instance ID.
Trait Implementations§
Source§impl<T> ErrorType for WithInstanceId<T>where
T: ErrorType,
impl<T> ErrorType for WithInstanceId<T>where
T: ErrorType,
Source§fn instance_id(&self) -> Option<Uuid>
fn instance_id(&self) -> Option<Uuid>
Returns the error’s instance ID, if it stores one. Read more
Source§fn 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.
Source§fn 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> Freeze for WithInstanceId<T>where
T: Freeze,
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§
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