pub struct ErrorInfo<'a> { /* private fields */ }Expand description
What the accounting needs to know about an error passing through a stream.
Deliberately not &StreamError: a binding crate’s pipeline carries that crate’s own error
type, axum::Error say, and it could not implement a trait from here for it anyway,
since both the trait and the type would be foreign to it (orphan rule). Everything the
accounting actually needs is a Display and, when available, the typed error.
Implementations§
Source§impl<'a> ErrorInfo<'a>
impl<'a> ErrorInfo<'a>
Sourcepub fn stream_error(&self) -> Option<&'a StreamError>
pub fn stream_error(&self) -> Option<&'a StreamError>
The typed error, when this stream carries StreamErrors.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ErrorInfo<'a>
impl<'a> !Send for ErrorInfo<'a>
impl<'a> !Sync for ErrorInfo<'a>
impl<'a> !UnwindSafe for ErrorInfo<'a>
impl<'a> Freeze for ErrorInfo<'a>
impl<'a> Unpin for ErrorInfo<'a>
impl<'a> UnsafeUnpin for ErrorInfo<'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