pub struct SourcePayload { /* private fields */ }Expand description
Owned source payload.
This is the public write-side counterpart of SourcePayloadRef. It keeps
ordinary standard errors and already-structured errors in separate payload
channels before attaching them to a StructError.
Implementations§
Source§impl SourcePayload
impl SourcePayload
pub fn kind(&self) -> SourcePayloadKind
pub fn source(&self) -> &(dyn StdError + 'static)
pub fn frames(&self) -> &[SourceFrame]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SourcePayload
impl !RefUnwindSafe for SourcePayload
impl Send for SourcePayload
impl Sync for SourcePayload
impl Unpin for SourcePayload
impl UnsafeUnpin for SourcePayload
impl !UnwindSafe for SourcePayload
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