pub enum BackupError {
BackupRpc {
source: Status,
},
BackupApiResponse {
code: i32,
description: String,
},
BackupAuth {
source: AuthError,
},
InvalidOptions {
message: String,
},
SpaceNameLookup {
space_id: String,
message: String,
},
MissingExportPath,
BackupIo {
path: PathBuf,
source: Error,
},
BackupMove {
from: PathBuf,
to: PathBuf,
source: Error,
},
}Expand description
Errors from space backup operations.
Variants§
BackupRpc
gRPC status error from a request.
BackupApiResponse
Anytype API returned an error response.
BackupAuth
Authentication token metadata was invalid.
InvalidOptions
Backup options were invalid.
SpaceNameLookup
Failed to resolve the friendly name for a space.
MissingExportPath
Server response did not include an export path.
BackupIo
Failed to create or access a local path.
BackupMove
Failed to move generated backup to its final target path.
Trait Implementations§
Source§impl Debug for BackupError
impl Debug for BackupError
Source§impl Display for BackupError
impl Display for BackupError
Source§impl Error for BackupError
impl Error for BackupError
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 BackupError
impl ErrorCompat for BackupError
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 BackupError
impl From<AuthError> for BackupError
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<Status> for BackupError
impl From<Status> for BackupError
Source§impl<__T0, __T1> IntoError<BackupError> for BackupApiResponseSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<BackupError> for BackupApiResponseSnafu<__T0, __T1>
Source§fn into_error(self, error: Self::Source) -> BackupError
fn into_error(self, error: Self::Source) -> BackupError
Combine the information to produce the error
Source§impl IntoError<BackupError> for BackupAuthSnafu
impl IntoError<BackupError> for BackupAuthSnafu
Source§fn into_error(self, error: Self::Source) -> BackupError
fn into_error(self, error: Self::Source) -> BackupError
Combine the information to produce the error
Source§impl<__T0> IntoError<BackupError> for BackupIoSnafu<__T0>
impl<__T0> IntoError<BackupError> for BackupIoSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> BackupError
fn into_error(self, error: Self::Source) -> BackupError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<BackupError> for BackupMoveSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<BackupError> for BackupMoveSnafu<__T0, __T1>
Source§fn into_error(self, error: Self::Source) -> BackupError
fn into_error(self, error: Self::Source) -> BackupError
Combine the information to produce the error
Source§impl IntoError<BackupError> for BackupRpcSnafu
impl IntoError<BackupError> for BackupRpcSnafu
Source§fn into_error(self, error: Self::Source) -> BackupError
fn into_error(self, error: Self::Source) -> BackupError
Combine the information to produce the error
Source§impl<__T0> IntoError<BackupError> for InvalidOptionsSnafu<__T0>
impl<__T0> IntoError<BackupError> for InvalidOptionsSnafu<__T0>
Source§fn into_error(self, error: Self::Source) -> BackupError
fn into_error(self, error: Self::Source) -> BackupError
Combine the information to produce the error
Source§impl IntoError<BackupError> for MissingExportPathSnafu
impl IntoError<BackupError> for MissingExportPathSnafu
Source§fn into_error(self, error: Self::Source) -> BackupError
fn into_error(self, error: Self::Source) -> BackupError
Combine the information to produce the error
Source§impl<__T0, __T1> IntoError<BackupError> for SpaceNameLookupSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<BackupError> for SpaceNameLookupSnafu<__T0, __T1>
Source§fn into_error(self, error: Self::Source) -> BackupError
fn into_error(self, error: Self::Source) -> BackupError
Combine the information to produce the error
Auto Trait Implementations§
impl Freeze for BackupError
impl !RefUnwindSafe for BackupError
impl Send for BackupError
impl Sync for BackupError
impl Unpin for BackupError
impl UnsafeUnpin for BackupError
impl !UnwindSafe for BackupError
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