pub struct OwnedDecodeFailure { /* private fields */ }Expand description
Decode refusal retaining the complete bytes and genuine child status.
Implementations§
Source§impl OwnedDecodeFailure
impl OwnedDecodeFailure
Sourcepub fn cause(&self) -> OwnedRunFailure
pub fn cause(&self) -> OwnedRunFailure
The original typed refusal.
Sourcepub fn encoded_bytes(&self) -> &[u8] ⓘ
pub fn encoded_bytes(&self) -> &[u8] ⓘ
Unchanged bytes which caused the refusal.
Sourcepub fn status(&self) -> ExitStatus
pub fn status(&self) -> ExitStatus
Actual successful child status, which does not erase a decoding failure.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OwnedDecodeFailure
impl RefUnwindSafe for OwnedDecodeFailure
impl Send for OwnedDecodeFailure
impl Sync for OwnedDecodeFailure
impl Unpin for OwnedDecodeFailure
impl UnsafeUnpin for OwnedDecodeFailure
impl UnwindSafe for OwnedDecodeFailure
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