pub enum AnytypeGrpcError {
Auth {
source: AuthError,
},
Config {
source: ConfigError,
},
View {
source: ViewError,
},
Backup {
source: BackupError,
},
Transport {
source: Error,
},
TimeoutConfig {
source: GrpcTimeoutConfigError,
},
Deadline {
source: GrpcDeadlineError,
},
ControlBoundary {
kind: GrpcControlBoundaryKind,
outcome: GrpcTimeoutOutcome,
},
}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.
TimeoutConfig
Logical gRPC deadline configuration error.
Fields
§
source: GrpcTimeoutConfigErrorDeadline
Stable, payload-free logical gRPC deadline expiration.
Fields
§
source: GrpcDeadlineErrorControlBoundary
A local session-stream boundary interrupted a control mutation.
Fields
§
kind: GrpcControlBoundaryKindClosed boundary classification without peer-provided text.
§
outcome: GrpcTimeoutOutcomeWhether the control future could have dispatched before interruption.
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 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 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<GrpcDeadlineError> for AnytypeGrpcError
impl From<GrpcDeadlineError> for AnytypeGrpcError
Source§fn from(source: GrpcDeadlineError) -> Self
fn from(source: GrpcDeadlineError) -> Self
Converts to this type from the input type.
Source§impl From<GrpcTimeoutConfigError> for AnytypeGrpcError
impl From<GrpcTimeoutConfigError> for AnytypeGrpcError
Source§fn from(source: GrpcTimeoutConfigError) -> Self
fn from(source: GrpcTimeoutConfigError) -> Self
Converts to this type from the input type.
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 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 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
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<__T0> IntoError<AnytypeGrpcError> for TransportSnafu<__T0>
impl<__T0> IntoError<AnytypeGrpcError> for TransportSnafu<__T0>
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 TimeoutConfigGrpcTimeoutConfigSnafu
impl IntoError<AnytypeGrpcError> for TimeoutConfigGrpcTimeoutConfigSnafu
Source§type Source = GrpcTimeoutConfigError
type Source = GrpcTimeoutConfigError
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 DeadlineGrpcDeadlineSnafu
impl IntoError<AnytypeGrpcError> for DeadlineGrpcDeadlineSnafu
Source§type Source = GrpcDeadlineError
type Source = GrpcDeadlineError
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<__T0, __T1> IntoError<AnytypeGrpcError> for ControlBoundarySnafu<__T0, __T1>where
AnytypeGrpcError: Error + ErrorCompat,
__T0: Into<GrpcControlBoundaryKind>,
__T1: Into<GrpcTimeoutOutcome>,
impl<__T0, __T1> IntoError<AnytypeGrpcError> for ControlBoundarySnafu<__T0, __T1>where
AnytypeGrpcError: Error + ErrorCompat,
__T0: Into<GrpcControlBoundaryKind>,
__T1: Into<GrpcTimeoutOutcome>,
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 !RefUnwindSafe for AnytypeGrpcError
impl !UnwindSafe for AnytypeGrpcError
impl Freeze for AnytypeGrpcError
impl Send for AnytypeGrpcError
impl Sync for AnytypeGrpcError
impl Unpin for AnytypeGrpcError
impl UnsafeUnpin 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