pub enum Error {
IntegerOverflow,
InvalidBase64Char(char),
InvalidBase64Value(u8),
ShortBinaryStream,
Misaligned {
len: usize,
unit: usize,
},
}Available on crate feature
b64 only.Expand description
Errors from CESR Base64 encode/decode operations.
Variants§
IntegerOverflow
The decoded Base64 value exceeds the target integer type’s maximum.
InvalidBase64Char(char)
A character was encountered that is not in the URL-safe Base64 alphabet.
InvalidBase64Value(u8)
A numeric Base64 value (0–63) was out of bounds.
ShortBinaryStream
The input stream ended before enough bytes were available.
Misaligned
The input length is not a whole multiple of the conversion unit (4 Base64 characters per 3 binary bytes).
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl From<Error> for IndexerParseError
Available on crate feature core only.
impl From<Error> for IndexerParseError
Available on crate feature
core only.Source§impl From<Error> for ParsingError
Available on crate feature core only.
impl From<Error> for ParsingError
Available on crate feature
core only.Source§fn from(source: CesrUtilError) -> Self
fn from(source: CesrUtilError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin 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