Struct micro_errors::ErrorChain
source ยท pub struct ErrorChain<T: Display>(pub T, pub ErrorLink);๐Deprecated since 0.3.0: use
ErrorLink_ insteadTuple Fieldsยง
ยง0: T๐Deprecated since 0.3.0: use
ยงErrorLink_ instead1: ErrorLink๐Deprecated since 0.3.0: use
ErrorLink_ insteadImplementationsยง
sourceยงimpl ErrorChain<String>
impl ErrorChain<String>
pub fn start(error_message: impl Into<String>) -> Self
pub fn add<T: Display>( error_message: impl Into<String>, current_chain: ErrorChain<T>, ) -> Self
pub fn add_fn<T: Display>( error_message: impl Into<String>, ) -> impl FnOnce(ErrorChain<T>) -> Self
pub fn onboard<T: Display>( error_message: impl Into<String>, underlying_error: T, ) -> Self
pub fn onboard_fn<T: Display>( error_message: impl Into<String>, ) -> impl FnOnce(T) -> Self
pub fn link( error_message: impl Into<String>, current_chain: impl Into<Self>, ) -> Self
pub fn link_fn<T: Into<Self>>( error_message: impl Into<String>, ) -> impl FnOnce(T) -> Self
Trait Implementationsยง
sourceยงimpl<T: Display> Display for ErrorChain<T>
impl<T: Display> Display for ErrorChain<T>
Auto Trait Implementationsยง
impl<T> !Freeze for ErrorChain<T>
impl<T> RefUnwindSafe for ErrorChain<T>where
T: RefUnwindSafe,
impl<T> Send for ErrorChain<T>where
T: Send,
impl<T> Sync for ErrorChain<T>where
T: Sync,
impl<T> Unpin for ErrorChain<T>where
T: Unpin,
impl<T> UnwindSafe for ErrorChain<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