pub enum Error {
Show 18 variants
MissingEndpoint,
MissingInterface,
InvalidInterfaceConfiguration(String),
InvalidEndpointConfiguration(String),
InvalidMatrixRoomIdentifier,
InvalidPortNumber(i64),
DisabledInterfaceFeature(String),
DisabledIEndpointFeature(String),
IOError(Error),
SerdeJsonError(Error),
SerdeTomlError(Error),
MatrixSDKError(Error),
MatrixClientBuildError(ClientBuildError),
MatrixSecretStoreError(SecretStorageError),
MatrixRecoveryError(RecoveryError),
NixErrorNoError(Errno),
UrlParseError(ParseError),
MailSendError(Error),
}Expand description
Errors returned by pass-it-on library.
Variants§
MissingEndpoint
At least one Endpoint needs to be defined for a server.
MissingInterface
At least one Interface needs to be defined for a server or client.
InvalidInterfaceConfiguration(String)
Validation failed for an InterfaceConfig.
InvalidEndpointConfiguration(String)
Validation failed for an EndpointConfig.
InvalidMatrixRoomIdentifier
matrix room name does not appear to be a room.
InvalidPortNumber(i64)
Port needs to be in a valid u16 range.
DisabledInterfaceFeature(String)
Call to an interface feature that is not enabled.
DisabledIEndpointFeature(String)
Return when an endpoint feature is called but not enabled
IOError(Error)
Pass-thru std::io::Error.
SerdeJsonError(Error)
Pass-thru serde_json::Error.
SerdeTomlError(Error)
Pass-thru toml::de::Error.
MatrixSDKError(Error)
Pass-thru matrix_sdk::Error.
MatrixClientBuildError(ClientBuildError)
Pass-thru matrix_sdk::ClientBuildError.
MatrixSecretStoreError(SecretStorageError)
Pass-thru matrix_sdk::encryption::secret_storage::SecretStorageError.
MatrixRecoveryError(RecoveryError)
Pass-thru matrix_sdk::encryption::recovery::RecoveryError.
NixErrorNoError(Errno)
Pass-thru nix::errno::Errno.
UrlParseError(ParseError)
Pass-thru url::ParseError.
MailSendError(Error)
Pass-thru mail_send::Error.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<ClientBuildError> for Error
impl From<ClientBuildError> for Error
Source§fn from(source: ClientBuildError) -> Self
fn from(source: ClientBuildError) -> Self
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Source§impl From<RecoveryError> for Error
impl From<RecoveryError> for Error
Source§fn from(source: RecoveryError) -> Self
fn from(source: RecoveryError) -> Self
Source§impl From<SecretStorageError> for Error
impl From<SecretStorageError> for Error
Source§fn from(source: SecretStorageError) -> Self
fn from(source: SecretStorageError) -> Self
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
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>
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>
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> 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> 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.