Enum lightspeed_core::error::ErrorDetails
source · pub enum ErrorDetails<'a> {
Root(RootErrorDetails),
Scoped(ScopedErrorDetails<'a>),
}
Variants§
Root(RootErrorDetails)
Scoped(ScopedErrorDetails<'a>)
Implementations§
source§impl<'a> ErrorDetails<'a>
impl<'a> ErrorDetails<'a>
pub fn add_detail<K: Into<String>, V: Into<ErrorDetail>>( &mut self, key: K, value: V )
pub fn with_scope<S: Into<String>>(&mut self, scope: S) -> ErrorDetails<'_>
pub fn details(&self) -> &ErrorDetailsData
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ErrorDetails<'a>
impl<'a> RefUnwindSafe for ErrorDetails<'a>
impl<'a> Send for ErrorDetails<'a>
impl<'a> Sync for ErrorDetails<'a>
impl<'a> Unpin for ErrorDetails<'a>
impl<'a> !UnwindSafe for ErrorDetails<'a>
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