pub struct NoSource;Expand description
An ErrorSource that can be used to represent to lack of any error source.
Both its Source and Detail types are (). This can be used for primitive errors
that are not caused by any error source.
In practice, it is also possible to omit specifying any error source inside
define_error!, which has similar effect as using
NoSource but with the source field omitted entirely.
Trait Implementations§
Source§impl<Trace> ErrorSource<Trace> for NoSource
impl<Trace> ErrorSource<Trace> for NoSource
Auto Trait Implementations§
impl Freeze for NoSource
impl RefUnwindSafe for NoSource
impl Send for NoSource
impl Sync for NoSource
impl Unpin for NoSource
impl UnwindSafe for NoSource
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