Enum bonsaidb::core::transmog_pot::pot::Error
pub enum Error {
}
Expand description
All errors that Pot may return.
Variants§
NotAPot
Payload is not a Pot payload.
IncompatibleVersion
Data was written with an incompatible version.
Message(String)
A generic error occurred.
TrailingBytes
Extra data appeared at the end of the input.
Eof
Expected more data but encountered the end of the input.
ImpreciseCastWouldLoseData
A numerical value could not be handled without losing precision or truncation.
Io(Error)
An error occurred from io.
SequenceSizeMustBeKnown
A sequence of unknown size cannot be serialized.
InvalidUtf8(String)
String data contained invalid utf-8 characters.
InvalidKind(u8)
An unknown kind was encountered. Generally a sign that something else has been parsed incorrectly.
UnexpectedKind(Kind, Kind)
Encountered an unexpected atom kind.
UnknownSymbol(u64)
A requested symbol id was not found.
InvalidAtomHeader
An atom header was incorrectly formatted.
TooManyBytesRead
The amount of data read exceeds the configured maximum number of bytes.
Trait Implementations§
§impl Error for Error
impl Error for Error
§fn custom<T>(msg: T) -> Errorwhere
T: Display,
fn custom<T>(msg: T) -> Errorwhere
T: Display,
Raised when there is general error when deserializing a type. Read more
source§fn invalid_type(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
fn invalid_type(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
Raised when a
Deserialize
receives a type different from what it was
expecting. Read moresource§fn invalid_value(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
fn invalid_value(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
Raised when a
Deserialize
receives a value of the right type but that
is wrong for some other reason. Read moresource§fn invalid_length(len: usize, exp: &dyn Expected) -> Self
fn invalid_length(len: usize, exp: &dyn Expected) -> Self
Raised when deserializing a sequence or map and the input data contains
too many or too few elements. Read more
source§fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self
fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self
Raised when a
Deserialize
enum type received a variant with an
unrecognized name. Read moresource§fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self
fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self
Raised when a
Deserialize
struct type received a field with an
unrecognized name. Read moresource§fn missing_field(field: &'static str) -> Self
fn missing_field(field: &'static str) -> Self
Raised when a
Deserialize
struct type expected to receive a required
field with a particular name but that field was not present in the
input. Read moresource§fn duplicate_field(field: &'static str) -> Self
fn duplicate_field(field: &'static str) -> Self
Raised when a
Deserialize
struct type received more than one of the
same field. Read more§impl Error for Error
impl Error for Error
§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()
source§impl<E> From<Error> for BackendError<E>
impl<E> From<Error> for BackendError<E>
source§fn from(other: Error) -> BackendError<E>
fn from(other: Error) -> BackendError<E>
Converts to this type from the input type.
source§impl<E> From<Error> for HandlerError<E>where
E: ApiError,
impl<E> From<Error> for HandlerError<E>where
E: ApiError,
source§fn from(other: Error) -> HandlerError<E>
fn from(other: Error) -> HandlerError<E>
Converts to this type from the input type.
§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
§fn from(err: FromUtf8Error) -> Error
fn from(err: FromUtf8Error) -> Error
Converts to this type from the input type.