Skip to main content

Error

Enum Error 

Source
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)

Available on crate feature aes-gcm only.

See the documentation of the associated element.

§

Argon2(Error)

Available on crate feature argon2 only.

See the documentation of the associated element.

§

CryptoCommonInvalidLength(InvalidLength)

Available on crate feature crypto-common only.

See the documentation of the associated element.

§

DecodeError(Box<DecodeError>)

Available on crate feature base64 only.

See the documentation of the associated element.

§

DecodeSliceError(Box<DecodeSliceError>)

Available on crate feature base64 only.

See the documentation of the associated element.

§

EmbassyNet(Error)

Available on crate feature embassy-net only.

See the documentation of the associated element.

§

EncodeSliceError(EncodeSliceError)

Available on crate feature base64 only.

See the documentation of the associated element.

§

Flate2CompressError(Box<CompressError>)

Available on crate feature flate2 only.

See the documentation of the associated element.

§

Flate2DecompressError(Box<DecompressError>)

Available on crate feature flate2 only.

See the documentation of the associated element.

§

GetRandomError(Error)

Available on crate feature getrandom only.

See the documentation of the associated element.

§

HttpParse(Error)

Available on crate feature httparse only.

See the documentation of the associated element.

§

MatchitError(MatchError)

Available on crate feature matchit only.

See the documentation of the associated element.

§

MatchitInsertError(Box<InsertError>)

Available on crate feature matchit only.

See the documentation of the associated element.

§

MacError(MacError)

Available on crate feature digest only.

See the documentation of the associated element.

§

QuickProtobuf(Box<Error>)

Available on crate feature quick-protobuf only.

See the documentation of the associated element.

§

RsaError(Box<Error>)

Available on crate feature rsa only.

See the documentation of the associated element.

§

RustlsError(Box<Error>)

Available on crate feature rustls only.

See the documentation of the associated element.

§

SerdeDeValue(Box<Error>)

Available on crate feature serde only.

See the documentation of the associated element.

§

SerdeJson(Error)

Available on crate feature serde_json only.

See the documentation of the associated element.

§

SerdeJsonDeserialize(Box<String>)

Available on crate feature serde_json only.

See the documentation of the associated element.

§

SpkiError(Box<Error>)

Available on crate feature spki only.

See the documentation of the associated element.

§

TokioJoinError(Box<JoinError>)

Available on crate feature tokio only.

See the documentation of the associated element.

§

TryInitError(Box<TryInitError>)

Available on crate feature tracing-subscriber only.

See the documentation of the associated element.

§

TryLockError(TryLockError<()>)

Available on crate feature std only.

See the documentation of the associated element.

§

UuidError(Box<Error>)

Available on crate feature 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)

Available on crate feature 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)

Available on crate feature 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

Fields

§expected: RangeInclusive<i32>

Expected bounds

§received: i32

Received number

§

UnexpectedBufferState

A buffer was partially read or write but should in fact be fully processed.

§

UnexpectedBytes

Unexpected bytes

Fields

§length: u16

Length of the unexpected bytes

§ty: ArrayStringU8<9>

Name of the associated entity

§

UnexpectedStreamReadEOF

Unexpected end of file when reading from a stream.

§

UnexpectedStreamWriteEOF

Unexpected end of file when writing to a stream.

§

UnexpectedString

Unexpected string

Fields

§length: usize

Length of the unexpected string

§

UnexpectedUint

Unexpected Unsigned integer

Fields

§received: u64

Number value

§

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)

Available on crate feature client-api-framework only.

See the documentation of the associated element.

§

Cookie(CookieError)

Available on crate feature http-cookie only.

See the documentation of the associated element.

§

DatabaseError(Box<DatabaseError>)

Available on crate feature 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)

Available on crate feature http only.

See the documentation of the associated element.

§

Http2ErrorGoAway(Http2ErrorCode, Http2Error)

Available on crate feature http2 only.

See the documentation of the associated element.

§

Http2FlowControlError(Http2Error, u32)

Available on crate feature http2 only.

See the documentation of the associated element.

§

MysqlDbError(Box<DbError>)

Available on crate feature mysql only.

See the documentation of the associated element.

§

MysqlError(MysqlError)

Available on crate feature mysql only.

See the documentation of the associated element.

§

PostgresDbError(Box<DbError>)

Available on crate feature postgres only.

See the documentation of the associated element.

§

PostgresError(PostgresError)

Available on crate feature postgres only.

See the documentation of the associated element.

§

QueueError(DequeueError)

See the documentation of the associated element.

§

SchemaManagerError(SchemaManagerError)

Available on crate feature schema-manager only.

See the documentation of the associated element.

§

ServerFrameworkError(ServerFrameworkError)

Available on crate feature http-server-framework only.

See the documentation of the associated element.

§

SessionError(SessionError)

Available on crate feature http-session only.

See the documentation of the associated element.

§

VectorError(VectorError)

See the documentation of the associated element.

§

WebSocketError(WebSocketError)

Available on crate feature web-socket only.

See the documentation of the associated element.

Trait Implementations§

Source§

impl Debug for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for Error

1.30.0 · Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl Error for Error

Available on crate feature serde only.
Source§

fn custom<T>(msg: T) -> Self
where T: Display,

Used when a Serialize implementation encounters any error while serializing a type. Read more
Source§

impl From<AddrParseError> for Error

Source§

fn from(from: AddrParseError) -> Self

Converts to this type from the input type.
Source§

impl From<ArrayStringError> for Error

Source§

fn from(from: ArrayStringError) -> Self

Converts to this type from the input type.
Source§

impl From<ArrayVectorError> for Error

Source§

fn from(from: ArrayVectorError) -> Self

Converts to this type from the input type.
Source§

impl From<BasicUtf8Error> for Error

Source§

fn from(_: BasicUtf8Error) -> Self

Converts to this type from the input type.
Source§

impl From<BlocksDequeError> for Error

Source§

fn from(from: BlocksDequeError) -> Self

Converts to this type from the input type.
Source§

impl From<Box<dyn Any + Send>> for Error

Source§

fn from(from: Box<dyn Any + Send + 'static>) -> Self

Converts to this type from the input type.
Source§

impl From<CalendarError> for Error

Source§

fn from(from: CalendarError) -> Self

Converts to this type from the input type.
Source§

impl From<ClientApiFrameworkError> for Error

Available on crate feature client-api-framework only.
Source§

fn from(from: ClientApiFrameworkError) -> Self

Converts to this type from the input type.
Source§

impl From<CompressError> for Error

Available on crate feature flate2 only.
Source§

fn from(from: CompressError) -> Self

Converts to this type from the input type.
Source§

impl From<CookieError> for Error

Available on crate feature http-cookie only.
Source§

fn from(from: CookieError) -> Self

Converts to this type from the input type.
Source§

impl From<DatabaseError> for Error

Available on crate feature database only.
Source§

fn from(from: DatabaseError) -> Self

Converts to this type from the input type.
Source§

impl From<DbError> for Error

Available on crate feature mysql only.
Source§

fn from(from: DbError) -> Self

Converts to this type from the input type.
Source§

impl From<DbError> for Error

Available on crate feature postgres only.
Source§

fn from(from: DbError) -> Self

Converts to this type from the input type.
Source§

impl From<DecError> for Error

Source§

fn from(from: DecError) -> Self

Converts to this type from the input type.
Source§

impl From<DecodeError> for Error

Available on crate feature base64 only.
Source§

fn from(from: DecodeError) -> Self

Converts to this type from the input type.
Source§

impl From<DecodeSliceError> for Error

Available on crate feature base64 only.
Source§

fn from(from: DecodeSliceError) -> Self

Converts to this type from the input type.
Source§

impl From<DecompressError> for Error

Available on crate feature flate2 only.
Source§

fn from(from: DecompressError) -> Self

Converts to this type from the input type.
Source§

impl From<DequeueError> for Error

Source§

fn from(from: DequeueError) -> Self

Converts to this type from the input type.
Source§

impl From<EncodeSliceError> for Error

Available on crate feature base64 only.
Source§

fn from(from: EncodeSliceError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for ()

Source§

fn from(_: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Available on crate feature aes-gcm only.
Source§

fn from(from: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Available on crate feature argon2 only.
Source§

fn from(from: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Available on crate feature serde only.
Source§

fn from(from: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Available on crate feature serde_json only.
Source§

fn from(from: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Available on crate feature spki only.
Source§

fn from(from: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Available on crate feature uuid only.
Source§

fn from(value: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Available on crate feature embassy-net only.
Source§

fn from(from: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Available on crate feature getrandom only.
Source§

fn from(from: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(from: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Available on crate feature httparse only.
Source§

fn from(from: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Available on crate feature std only.
Source§

fn from(from: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Available on crate feature quick-protobuf only.
Source§

fn from(from: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Available on crate feature rsa only.
Source§

fn from(from: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Available on crate feature rustls only.
Source§

fn from(from: Error) -> Self

Converts to this type from the input type.
Source§

impl From<FromRadix10Error> for Error

Source§

fn from(from: FromRadix10Error) -> Self

Converts to this type from the input type.
Source§

impl From<HexError> for Error

Source§

fn from(from: HexError) -> Self

Converts to this type from the input type.
Source§

impl From<HttpError> for Error

Available on crate feature http only.
Source§

fn from(from: HttpError) -> Self

Converts to this type from the input type.
Source§

impl From<InsertError> for Error

Available on crate feature matchit only.
Source§

fn from(from: InsertError) -> Self

Converts to this type from the input type.
Source§

impl From<InvalidLength> for Error

Available on crate feature crypto-common only.
Source§

fn from(from: InvalidLength) -> Self

Converts to this type from the input type.
Source§

impl From<JoinError> for Error

Available on crate feature tokio only.
Source§

fn from(from: JoinError) -> Self

Converts to this type from the input type.
Source§

impl From<MacError> for Error

Available on crate feature digest only.
Source§

fn from(from: MacError) -> Self

Converts to this type from the input type.
Source§

impl From<MatchError> for Error

Available on crate feature matchit only.
Source§

fn from(from: MatchError) -> Self

Converts to this type from the input type.
Source§

impl From<MysqlError> for Error

Available on crate feature mysql only.
Source§

fn from(from: MysqlError) -> Self

Converts to this type from the input type.
Source§

impl From<ParseIntError> for Error

Source§

fn from(from: ParseIntError) -> Self

Converts to this type from the input type.
Source§

impl From<PostgresError> for Error

Available on crate feature postgres only.
Source§

fn from(from: PostgresError) -> Self

Converts to this type from the input type.
Source§

impl From<RecvError> for Error

Source§

fn from(from: RecvError) -> Self

Converts to this type from the input type.
Source§

impl From<SchemaManagerError> for Error

Available on crate feature schema-manager only.
Source§

fn from(from: SchemaManagerError) -> Self

Converts to this type from the input type.
Source§

impl From<SendError<()>> for Error

Source§

fn from(from: SendError<()>) -> Self

Converts to this type from the input type.
Source§

impl From<ServerFrameworkError> for Error

Available on crate feature http-server-framework only.
Source§

fn from(from: ServerFrameworkError) -> Self

Converts to this type from the input type.
Source§

impl From<SessionError> for Error

Available on crate feature http-session only.
Source§

fn from(from: SessionError) -> Self

Converts to this type from the input type.
Source§

impl From<TryFromIntError> for Error

Source§

fn from(from: TryFromIntError) -> Self

Converts to this type from the input type.
Source§

impl From<TryFromSliceError> for Error

Source§

fn from(from: TryFromSliceError) -> Self

Converts to this type from the input type.
Source§

impl From<TryInitError> for Error

Available on crate feature tracing-subscriber only.
Source§

fn from(from: TryInitError) -> Self

Converts to this type from the input type.
Source§

impl<T> From<TryLockError<T>> for Error

Available on crate feature std only.
Source§

fn from(from: TryLockError<T>) -> Self

Converts to this type from the input type.
Source§

impl From<VarError> for Error

Available on crate feature std only.
Source§

fn from(from: VarError) -> Self

Converts to this type from the input type.
Source§

impl From<VectorError> for Error

Source§

fn from(from: VectorError) -> Self

Converts to this type from the input type.
Source§

impl From<WebSocketError> for Error

Available on crate feature web-socket only.
Source§

fn from(from: WebSocketError) -> Self

Converts to this type from the input type.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more