pub enum AnytypeGrpcError {
Auth {
source: AuthError,
},
Config {
source: ConfigError,
},
View {
source: ViewError,
},
Backup {
source: BackupError,
},
Transport {
source: Error,
},
}Expand description
Unified error type for anytype-rpc gRPC operations.
Variants§
Auth
Authentication error.
Config
Configuration error.
Fields
§
source: ConfigErrorView
View operation error.
Backup
Space backup operation error.
Fields
§
source: BackupErrorTransport
gRPC transport connection error.
Trait Implementations§
Source§impl Debug for AnytypeGrpcError
impl Debug for AnytypeGrpcError
Source§impl Display for AnytypeGrpcError
impl Display for AnytypeGrpcError
Source§impl Error for AnytypeGrpcError
impl Error for AnytypeGrpcError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for AnytypeGrpcError
impl ErrorCompat for AnytypeGrpcError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl From<AuthError> for AnytypeGrpcError
impl From<AuthError> for AnytypeGrpcError
Source§impl From<BackupError> for AnytypeGrpcError
impl From<BackupError> for AnytypeGrpcError
Source§fn from(source: BackupError) -> Self
fn from(source: BackupError) -> Self
Converts to this type from the input type.
Source§impl From<ConfigError> for AnytypeGrpcError
impl From<ConfigError> for AnytypeGrpcError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for AnytypeGrpcError
impl From<Error> for AnytypeGrpcError
Source§impl From<ViewError> for AnytypeGrpcError
impl From<ViewError> for AnytypeGrpcError
Source§impl IntoError<AnytypeGrpcError> for AuthSnafu
impl IntoError<AnytypeGrpcError> for AuthSnafu
Source§fn into_error(self, error: Self::Source) -> AnytypeGrpcError
fn into_error(self, error: Self::Source) -> AnytypeGrpcError
Combine the information to produce the error
Source§impl IntoError<AnytypeGrpcError> for BackupSnafu
impl IntoError<AnytypeGrpcError> for BackupSnafu
Source§type Source = BackupError
type Source = BackupError
The underlying error
Source§fn into_error(self, error: Self::Source) -> AnytypeGrpcError
fn into_error(self, error: Self::Source) -> AnytypeGrpcError
Combine the information to produce the error
Source§impl IntoError<AnytypeGrpcError> for ConfigSnafu
impl IntoError<AnytypeGrpcError> for ConfigSnafu
Source§type Source = ConfigError
type Source = ConfigError
The underlying error
Source§fn into_error(self, error: Self::Source) -> AnytypeGrpcError
fn into_error(self, error: Self::Source) -> AnytypeGrpcError
Combine the information to produce the error
Source§impl IntoError<AnytypeGrpcError> for TransportSnafu
impl IntoError<AnytypeGrpcError> for TransportSnafu
Source§fn into_error(self, error: Self::Source) -> AnytypeGrpcError
fn into_error(self, error: Self::Source) -> AnytypeGrpcError
Combine the information to produce the error
Source§impl IntoError<AnytypeGrpcError> for ViewSnafu
impl IntoError<AnytypeGrpcError> for ViewSnafu
Source§fn into_error(self, error: Self::Source) -> AnytypeGrpcError
fn into_error(self, error: Self::Source) -> AnytypeGrpcError
Combine the information to produce the error
Auto Trait Implementations§
impl Freeze for AnytypeGrpcError
impl !RefUnwindSafe for AnytypeGrpcError
impl Send for AnytypeGrpcError
impl Sync for AnytypeGrpcError
impl Unpin for AnytypeGrpcError
impl UnsafeUnpin for AnytypeGrpcError
impl !UnwindSafe for AnytypeGrpcError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request