pub enum Error {
Show 92 variants
AeadError(Error),
Argon2(Error),
CryptoCommonInvalidLength(InvalidLength),
DecodeError(Box<DecodeError>),
DecodeSliceError(Box<DecodeSliceError>),
EmbassyNet(Error),
EncodeSliceError(EncodeSliceError),
Flate2CompressError(Box<CompressError>),
Flate2DecompressError(Box<DecompressError>),
GetRandomError(Error),
HttpParse(Error),
MatchitError(MatchError),
MatchitInsertError(Box<InsertError>),
MacError(MacError),
QuickProtobuf(Box<Error>),
RsaError(Box<Error>),
RustlsError(Box<Error>),
SerdeDeValue(Box<Error>),
SerdeJson(Error),
SerdeJsonDeserialize(Box<String>),
SpkiError(Box<Error>),
TokioJoinError(Box<JoinError>),
TryInitError(Box<TryInitError>),
TryLockError(TryLockError<()>),
UuidError(Box<Error>),
AddrParseError(AddrParseError),
Fmt(Error),
IoError(Error),
ParseIntError(ParseIntError),
RecvError(RecvError),
SendError(SendError<()>),
TryFromIntError(TryFromIntError),
TryFromSliceError(TryFromSliceError),
VarError(VarError),
Utf8Error(Box<Utf8Error>),
AllocError(Box<Layout>),
ClosedConnection,
ClosedHttpConnection,
ClosedWebSocketConnection,
ExpiredFuture,
FuturePolledAfterFinalization,
Generic(Box<String>),
InsufficientOptionCapacity,
InvalidAes256GcmData,
InvalidPartitionedBufferBounds,
InvalidUTF8,
InvalidUTF8Bound,
InvalidUri,
MissingCaProviders,
MissingVar(Box<&'static str>),
MissingVarQuote(Box<String>),
MlockError,
MunlockError,
NoAvailableVars(Box<String>),
NoInnerValue(Box<&'static str>),
OutOfBoundsArithmetic,
ProgrammingError,
UnboundedNumber {
expected: RangeInclusive<i32>,
received: i32,
},
UnexpectedBufferState,
UnexpectedBytes {
length: u16,
ty: ArrayStringU8<9>,
},
UnexpectedStreamReadEOF,
UnexpectedStreamWriteEOF,
UnexpectedString {
length: usize,
},
UnexpectedUint {
received: u64,
},
UnsupportedMlockPlatform,
UnsupportedOperation,
UriCanNotBeOverwritten,
UsizeConversionOverflow,
VectoredWriteOverflow,
ArrayStringError(ArrayStringError),
ArrayVectorError(ArrayVectorError),
BlocksQueueError(BlocksDequeError),
CalendarError(CalendarError),
ClientApiFrameworkError(ClientApiFrameworkError),
Cookie(CookieError),
DatabaseError(Box<DatabaseError>),
DecError(DecError),
FromRadix10Error(FromRadix10Error),
HexError(HexError),
HttpError(HttpError),
Http2ErrorGoAway(Http2ErrorCode, Http2Error),
Http2FlowControlError(Http2Error, u32),
MysqlDbError(Box<DbError>),
MysqlError(MysqlError),
PostgresDbError(Box<DbError>),
PostgresError(PostgresError),
QueueError(DequeueError),
SchemaManagerError(SchemaManagerError),
ServerFrameworkError(ServerFrameworkError),
SessionError(SessionError),
VectorError(VectorError),
WebSocketError(WebSocketError),
}Expand description
Grouped individual errors
Variants§
AeadError(Error)
aes-gcm only.See the documentation of the associated element.
Argon2(Error)
argon2 only.See the documentation of the associated element.
CryptoCommonInvalidLength(InvalidLength)
crypto-common only.See the documentation of the associated element.
DecodeError(Box<DecodeError>)
base64 only.See the documentation of the associated element.
DecodeSliceError(Box<DecodeSliceError>)
base64 only.See the documentation of the associated element.
EmbassyNet(Error)
embassy-net only.See the documentation of the associated element.
EncodeSliceError(EncodeSliceError)
base64 only.See the documentation of the associated element.
Flate2CompressError(Box<CompressError>)
flate2 only.See the documentation of the associated element.
Flate2DecompressError(Box<DecompressError>)
flate2 only.See the documentation of the associated element.
GetRandomError(Error)
getrandom only.See the documentation of the associated element.
HttpParse(Error)
httparse only.See the documentation of the associated element.
MatchitError(MatchError)
matchit only.See the documentation of the associated element.
MatchitInsertError(Box<InsertError>)
matchit only.See the documentation of the associated element.
MacError(MacError)
digest only.See the documentation of the associated element.
QuickProtobuf(Box<Error>)
quick-protobuf only.See the documentation of the associated element.
RsaError(Box<Error>)
rsa only.See the documentation of the associated element.
RustlsError(Box<Error>)
rustls only.See the documentation of the associated element.
SerdeDeValue(Box<Error>)
serde only.See the documentation of the associated element.
SerdeJson(Error)
serde_json only.See the documentation of the associated element.
SerdeJsonDeserialize(Box<String>)
serde_json only.See the documentation of the associated element.
SpkiError(Box<Error>)
spki only.See the documentation of the associated element.
TokioJoinError(Box<JoinError>)
tokio only.See the documentation of the associated element.
TryInitError(Box<TryInitError>)
tracing-subscriber only.See the documentation of the associated element.
TryLockError(TryLockError<()>)
std only.See the documentation of the associated element.
UuidError(Box<Error>)
uuid only.See the documentation of the associated element.
AddrParseError(AddrParseError)
See the documentation of the associated element.
Fmt(Error)
See the documentation of the associated element.
IoError(Error)
std only.See the documentation of the associated element.
ParseIntError(ParseIntError)
See the documentation of the associated element.
RecvError(RecvError)
See the documentation of the associated element.
SendError(SendError<()>)
See the documentation of the associated element.
TryFromIntError(TryFromIntError)
See the documentation of the associated element.
TryFromSliceError(TryFromSliceError)
See the documentation of the associated element.
VarError(VarError)
std only.See the documentation of the associated element.
Utf8Error(Box<Utf8Error>)
See the documentation of the associated element.
AllocError(Box<Layout>)
Allocation error
ClosedConnection
A connection was unexpectedly closed by an external actor or because of a local error.
ClosedHttpConnection
A HTTP connection was unexpectedly closed by an external actor or because of a local error.
ClosedWebSocketConnection
A WebSocket connection was unexpectedly closed by an external actor or because of a local error.
ExpiredFuture
Future should complete before a certain duration but didn’t
FuturePolledAfterFinalization
Future must not be polled again after finalization
Generic(Box<String>)
Generic error
InsufficientOptionCapacity
It is not possible to add an element into an Option because it is already occupied.
InvalidAes256GcmData
Data must have a nonce and a tag.
InvalidPartitionedBufferBounds
Indices are out-of-bounds or the number of bytes are too small.
InvalidUTF8
Invalid UTF-8.
InvalidUTF8Bound
An index that cuts an UTF-8 string makes the sequence invalid.
InvalidUri
Invalid URI
MissingCaProviders
There is no CA provider.
MissingVar(Box<&'static str>)
A instance could not be constructed because of a missing required variable.
MissingVarQuote(Box<String>)
A variable does not have an ending quote
MlockError
Something prevented a mlock operation
MunlockError
Something prevented a munlock operation
NoAvailableVars(Box<String>)
A variable does not have an ending quote
NoInnerValue(Box<&'static str>)
Usually used to transform Options into Results
OutOfBoundsArithmetic
A set of arithmetic operations resulted in an overflow, underflow or division by zero
ProgrammingError
An error that shouldn’t exist. If this variant is raised, then it is very likely that the involved code was not built the way it should be.
UnboundedNumber
Unexpected Unsigned integer
UnexpectedBufferState
A buffer was partially read or write but should in fact be fully processed.
UnexpectedBytes
Unexpected bytes
UnexpectedStreamReadEOF
Unexpected end of file when reading from a stream.
UnexpectedStreamWriteEOF
Unexpected end of file when writing to a stream.
UnexpectedString
Unexpected string
UnexpectedUint
Unexpected Unsigned integer
UnsupportedMlockPlatform
The operation mlock is not supported in your platform
UnsupportedOperation
Unsupported operation
UriCanNotBeOverwritten
Only appending is possible but overwritten is still viable through resetting.
UsizeConversionOverflow
In the current platform a number is larger than usize.
VectoredWriteOverflow
It is not possible to write more than 8 slices at once.
ArrayStringError(ArrayStringError)
See the documentation of the associated element.
ArrayVectorError(ArrayVectorError)
See the documentation of the associated element.
BlocksQueueError(BlocksDequeError)
See the documentation of the associated element.
CalendarError(CalendarError)
See the documentation of the associated element.
ClientApiFrameworkError(ClientApiFrameworkError)
client-api-framework only.See the documentation of the associated element.
Cookie(CookieError)
http-cookie only.See the documentation of the associated element.
DatabaseError(Box<DatabaseError>)
database only.See the documentation of the associated element.
DecError(DecError)
See the documentation of the associated element.
FromRadix10Error(FromRadix10Error)
See the documentation of the associated element.
HexError(HexError)
See the documentation of the associated element.
HttpError(HttpError)
http only.See the documentation of the associated element.
Http2ErrorGoAway(Http2ErrorCode, Http2Error)
http2 only.See the documentation of the associated element.
Http2FlowControlError(Http2Error, u32)
http2 only.See the documentation of the associated element.
MysqlDbError(Box<DbError>)
mysql only.See the documentation of the associated element.
MysqlError(MysqlError)
mysql only.See the documentation of the associated element.
PostgresDbError(Box<DbError>)
postgres only.See the documentation of the associated element.
PostgresError(PostgresError)
postgres only.See the documentation of the associated element.
QueueError(DequeueError)
See the documentation of the associated element.
SchemaManagerError(SchemaManagerError)
schema-manager only.See the documentation of the associated element.
ServerFrameworkError(ServerFrameworkError)
http-server-framework only.See the documentation of the associated element.
SessionError(SessionError)
http-session only.See the documentation of the associated element.
VectorError(VectorError)
See the documentation of the associated element.
WebSocketError(WebSocketError)
web-socket only.See the documentation of the associated element.
Trait Implementations§
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<AddrParseError> for Error
impl From<AddrParseError> for Error
Source§fn from(from: AddrParseError) -> Self
fn from(from: AddrParseError) -> Self
Source§impl From<ArrayStringError> for Error
impl From<ArrayStringError> for Error
Source§fn from(from: ArrayStringError) -> Self
fn from(from: ArrayStringError) -> Self
Source§impl From<ArrayVectorError> for Error
impl From<ArrayVectorError> for Error
Source§fn from(from: ArrayVectorError) -> Self
fn from(from: ArrayVectorError) -> Self
Source§impl From<BasicUtf8Error> for Error
impl From<BasicUtf8Error> for Error
Source§fn from(_: BasicUtf8Error) -> Self
fn from(_: BasicUtf8Error) -> Self
Source§impl From<BlocksDequeError> for Error
impl From<BlocksDequeError> for Error
Source§fn from(from: BlocksDequeError) -> Self
fn from(from: BlocksDequeError) -> Self
Source§impl From<CalendarError> for Error
impl From<CalendarError> for Error
Source§fn from(from: CalendarError) -> Self
fn from(from: CalendarError) -> Self
Source§impl From<ClientApiFrameworkError> for Error
Available on crate feature client-api-framework only.
impl From<ClientApiFrameworkError> for Error
client-api-framework only.Source§fn from(from: ClientApiFrameworkError) -> Self
fn from(from: ClientApiFrameworkError) -> Self
Source§impl From<CompressError> for Error
Available on crate feature flate2 only.
impl From<CompressError> for Error
flate2 only.Source§fn from(from: CompressError) -> Self
fn from(from: CompressError) -> Self
Source§impl From<CookieError> for Error
Available on crate feature http-cookie only.
impl From<CookieError> for Error
http-cookie only.Source§fn from(from: CookieError) -> Self
fn from(from: CookieError) -> Self
Source§impl From<DatabaseError> for Error
Available on crate feature database only.
impl From<DatabaseError> for Error
database only.Source§fn from(from: DatabaseError) -> Self
fn from(from: DatabaseError) -> Self
Source§impl From<DecodeError> for Error
Available on crate feature base64 only.
impl From<DecodeError> for Error
base64 only.Source§fn from(from: DecodeError) -> Self
fn from(from: DecodeError) -> Self
Source§impl From<DecodeSliceError> for Error
Available on crate feature base64 only.
impl From<DecodeSliceError> for Error
base64 only.Source§fn from(from: DecodeSliceError) -> Self
fn from(from: DecodeSliceError) -> Self
Source§impl From<DecompressError> for Error
Available on crate feature flate2 only.
impl From<DecompressError> for Error
flate2 only.Source§fn from(from: DecompressError) -> Self
fn from(from: DecompressError) -> Self
Source§impl From<DequeueError> for Error
impl From<DequeueError> for Error
Source§fn from(from: DequeueError) -> Self
fn from(from: DequeueError) -> Self
Source§impl From<EncodeSliceError> for Error
Available on crate feature base64 only.
impl From<EncodeSliceError> for Error
base64 only.Source§fn from(from: EncodeSliceError) -> Self
fn from(from: EncodeSliceError) -> Self
Source§impl From<FromRadix10Error> for Error
impl From<FromRadix10Error> for Error
Source§fn from(from: FromRadix10Error) -> Self
fn from(from: FromRadix10Error) -> Self
Source§impl From<InsertError> for Error
Available on crate feature matchit only.
impl From<InsertError> for Error
matchit only.Source§fn from(from: InsertError) -> Self
fn from(from: InsertError) -> Self
Source§impl From<InvalidLength> for Error
Available on crate feature crypto-common only.
impl From<InvalidLength> for Error
crypto-common only.Source§fn from(from: InvalidLength) -> Self
fn from(from: InvalidLength) -> Self
Source§impl From<MatchError> for Error
Available on crate feature matchit only.
impl From<MatchError> for Error
matchit only.Source§fn from(from: MatchError) -> Self
fn from(from: MatchError) -> Self
Source§impl From<MysqlError> for Error
Available on crate feature mysql only.
impl From<MysqlError> for Error
mysql only.Source§fn from(from: MysqlError) -> Self
fn from(from: MysqlError) -> Self
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(from: ParseIntError) -> Self
fn from(from: ParseIntError) -> Self
Source§impl From<PostgresError> for Error
Available on crate feature postgres only.
impl From<PostgresError> for Error
postgres only.Source§fn from(from: PostgresError) -> Self
fn from(from: PostgresError) -> Self
Source§impl From<SchemaManagerError> for Error
Available on crate feature schema-manager only.
impl From<SchemaManagerError> for Error
schema-manager only.Source§fn from(from: SchemaManagerError) -> Self
fn from(from: SchemaManagerError) -> Self
Source§impl From<ServerFrameworkError> for Error
Available on crate feature http-server-framework only.
impl From<ServerFrameworkError> for Error
http-server-framework only.Source§fn from(from: ServerFrameworkError) -> Self
fn from(from: ServerFrameworkError) -> Self
Source§impl From<SessionError> for Error
Available on crate feature http-session only.
impl From<SessionError> for Error
http-session only.Source§fn from(from: SessionError) -> Self
fn from(from: SessionError) -> Self
Source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
Source§fn from(from: TryFromIntError) -> Self
fn from(from: TryFromIntError) -> Self
Source§impl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
Source§fn from(from: TryFromSliceError) -> Self
fn from(from: TryFromSliceError) -> Self
Source§impl From<TryInitError> for Error
Available on crate feature tracing-subscriber only.
impl From<TryInitError> for Error
tracing-subscriber only.Source§fn from(from: TryInitError) -> Self
fn from(from: TryInitError) -> Self
Source§impl<T> From<TryLockError<T>> for Error
Available on crate feature std only.
impl<T> From<TryLockError<T>> for Error
std only.Source§fn from(from: TryLockError<T>) -> Self
fn from(from: TryLockError<T>) -> Self
Source§impl From<VectorError> for Error
impl From<VectorError> for Error
Source§fn from(from: VectorError) -> Self
fn from(from: VectorError) -> Self
Source§impl From<WebSocketError> for Error
Available on crate feature web-socket only.
impl From<WebSocketError> for Error
web-socket only.