Enum sentry_types::protocol::v7::EnvelopeError
source · [−]pub enum EnvelopeError {
UnexpectedEof,
MissingHeader,
MissingItemHeader,
MissingNewline,
InvalidHeader(Error),
InvalidItemHeader(Error),
InvalidItemPayload(Error),
}
Expand description
Raised if a envelope cannot be parsed from a given input.
Variants
UnexpectedEof
Unexpected end of file
MissingHeader
Missing envelope header
MissingItemHeader
Missing item header
MissingNewline
Missing newline after header or payload
InvalidHeader(Error)
Invalid envelope header
InvalidItemHeader(Error)
Invalid item header
InvalidItemPayload(Error)
Invalid item payload
Trait Implementations
sourceimpl Debug for EnvelopeError
impl Debug for EnvelopeError
sourceimpl Display for EnvelopeError
impl Display for EnvelopeError
sourceimpl Error for EnvelopeError
impl Error for EnvelopeError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for EnvelopeError
impl Send for EnvelopeError
impl Sync for EnvelopeError
impl Unpin for EnvelopeError
impl !UnwindSafe for EnvelopeError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more