Enum triseratops::error::Error
source · pub enum Error {
ParseError,
UnsupportedTagFormat,
ParseIncomplete(Needed),
VerboseParseError {
errors: Vec<(Vec<u8>, VerboseErrorKind)>,
},
Base64EncodeError {
source: EncodeSliceError,
},
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
Fields
§
errors: Vec<(Vec<u8>, VerboseErrorKind)>
Represents an generic parse error.
Base64EncodeError
Fields
§
source: EncodeSliceError
Represents decode error.
Base64DecodeError
Fields
§
source: DecodeError
Represents decode error.
Base64InvalidLengthError
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§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn 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§
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