Enum triseratops::error::Error
source · [−]pub enum Error {
ParseError,
UnsupportedTagFormat,
ParseIncomplete(Needed),
VerboseParseError {
errors: Vec<(Vec<u8>, VerboseErrorKind)>,
},
Base64DecodeError {
source: DecodeError,
},
Base64InvalidLengthError {
length: usize,
},
EnvelopeParseError,
EnvelopeNameMismatch {
expected: String,
actual: String,
},
NoTagDataAvailable,
IOError(Error),
}
Expand description
Error enumerates all possible errors returned by this library.
Variants
ParseError
Represents an generic parse error.
UnsupportedTagFormat
Thrown when trying to parse a tag with an unsupported tag format.
ParseIncomplete(Needed)
Represents an generic parse error.
VerboseParseError
Represents an generic parse error.
Base64DecodeError
Fields
source: DecodeError
Represents decode error.
Base64InvalidLengthError
Fields
length: usize
Represents decode error.
EnvelopeParseError
Represents decode error.
EnvelopeNameMismatch
Represents decode error.
NoTagDataAvailable
Happens when trying to write tag data even though no data is available.
IOError(Error)
Represents all other cases of std::io::Error
.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
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 Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more