pub enum DataError {
Show 20 variants
Public(String),
Internal(String),
ParseIntError(ParseIntError),
Io(Error),
FromUtf8(FromUtf8Error),
Decoding(Cow<'static, str>),
UrlParse(ParseError),
SerdeJson(Error),
Diesel(Error),
Regex(Error),
Pool(PoolError),
Utf8Error(Utf8Error),
Matrix(MatrixError),
Uiaa(UiaaInfo),
Send(SendError),
IdParse(IdParseError),
CanonicalJson(CanonicalJsonError),
MxcUriError(MxcUriError),
ImageError(ImageError),
Signatures(Error),
}Variants§
Public(String)
Internal(String)
ParseIntError(ParseIntError)
Io(Error)
FromUtf8(FromUtf8Error)
Decoding(Cow<'static, str>)
UrlParse(ParseError)
SerdeJson(Error)
Diesel(Error)
Regex(Error)
Pool(PoolError)
Utf8Error(Utf8Error)
Matrix(MatrixError)
Uiaa(UiaaInfo)
Send(SendError)
IdParse(IdParseError)
CanonicalJson(CanonicalJsonError)
MxcUriError(MxcUriError)
ImageError(ImageError)
Signatures(Error)
Implementations§
Trait Implementations§
Source§impl EndpointOutRegister for DataError
impl EndpointOutRegister for DataError
Source§fn register(components: &mut Components, operation: &mut Operation)
fn register(components: &mut Components, operation: &mut Operation)
Modify the OpenApi components section or current operation information with given argument. This function is called by macros internal.
Source§impl Error for DataError
impl Error for DataError
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<CanonicalJsonError> for DataError
impl From<CanonicalJsonError> for DataError
Source§fn from(source: CanonicalJsonError) -> Self
fn from(source: CanonicalJsonError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for DataError
impl From<FromUtf8Error> for DataError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DataError
impl From<Error> for DataError
Source§fn from(source: IdParseError) -> Self
fn from(source: IdParseError) -> Self
Converts to this type from the input type.
Source§impl From<ImageError> for DataError
impl From<ImageError> for DataError
Source§fn from(source: ImageError) -> Self
fn from(source: ImageError) -> Self
Converts to this type from the input type.
Source§impl From<MatrixError> for DataError
impl From<MatrixError> for DataError
Source§fn from(source: MatrixError) -> Self
fn from(source: MatrixError) -> Self
Converts to this type from the input type.
Source§impl From<MxcUriError> for DataError
impl From<MxcUriError> for DataError
Source§fn from(source: MxcUriError) -> Self
fn from(source: MxcUriError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for DataError
impl From<ParseError> for DataError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for DataError
impl From<ParseIntError> for DataError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl Writer for DataError
impl Writer for DataError
Source§fn write<'life0, 'life1, 'life2, 'async_trait>(
self,
req: &'life0 mut Request,
depot: &'life1 mut Depot,
res: &'life2 mut Response,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn write<'life0, 'life1, 'life2, 'async_trait>(
self,
req: &'life0 mut Request,
depot: &'life1 mut Depot,
res: &'life2 mut Response,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Write data to
Response.Auto Trait Implementations§
impl Freeze for DataError
impl !RefUnwindSafe for DataError
impl Send for DataError
impl Sync for DataError
impl Unpin for DataError
impl !UnwindSafe for DataError
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
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read moreSource§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.