Enum Error
pub enum Error {
EncodingError(String),
InvalidVectorLength,
InvalidWriteLength(String),
InvalidInput,
DecodingError(String),
EndOfStream,
TrailingData,
UnknownValue(u64),
LibraryError,
}Available on 32-bit or 64-bit only.
Expand description
Errors that are thrown by this crate.
Variants§
EncodingError(String)
An error occurred during encoding.
InvalidVectorLength
The length of a vector is invalid.
InvalidWriteLength(String)
Error writing everything out.
InvalidInput
Invalid input when trying to decode a primitive integer.
DecodingError(String)
An error occurred during decoding.
EndOfStream
Reached the end of a byte stream.
TrailingData
Found unexpected data after deserializing.
UnknownValue(u64)
An unknown value in an enum. The application might not want to treat this as an error because it is only an unknown value, not an invalid value.
LibraryError
An internal library error that indicates a bug.
Trait Implementations§
§impl Error for Error
Available on crate feature std only.
impl Error for Error
Available on crate feature
std only.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 BasicCredentialError
impl From<Error> for BasicCredentialError
Source§impl From<Error> for SecretTreeError
impl From<Error> for SecretTreeError
Source§fn from(source: TlsCodecError) -> Self
fn from(source: TlsCodecError) -> Self
Converts to this type from the input type.
§impl From<Infallible> for Error
impl From<Infallible> for Error
§fn from(_e: Infallible) -> Error
fn from(_e: Infallible) -> Error
Converts to this type from the input type.
§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
§fn from(_e: TryFromIntError) -> Error
fn from(_e: TryFromIntError) -> Error
Converts to this type from the input type.
§impl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
§fn from(_: TryFromSliceError) -> Error
fn from(_: TryFromSliceError) -> Error
Converts to this type from the input type.
impl Eq for Error
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 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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more