pub enum DataError {
Show 24 variants
FileQueryPolicyError(String),
CASConfigError(String),
ShardConfigError(String),
DedupConfigError(String),
CleanTaskError(String),
UploadTaskError(String),
InternalError(String),
SyncError(String),
ChannelRecvError(RecvError),
FormatError(CoreError),
ClientError(ClientError),
JoinError(JoinError),
FileNotCleanedError(FromUtf8Error),
IOError(Error),
HashNotFound,
ParameterError(String),
HashStringParsingFailure(DataHashHexParseError),
DeprecatedError(String),
InvalidOperation(String),
SizeMismatch {
expected: u64,
actual: u64,
},
AuthError(AuthError),
PermitAcquisitionError(AcquireError),
FileReconstructionError(FileReconstructionError),
RuntimeError(RuntimeError),
}Variants§
FileQueryPolicyError(String)
CASConfigError(String)
ShardConfigError(String)
DedupConfigError(String)
CleanTaskError(String)
UploadTaskError(String)
InternalError(String)
SyncError(String)
ChannelRecvError(RecvError)
FormatError(CoreError)
ClientError(ClientError)
JoinError(JoinError)
FileNotCleanedError(FromUtf8Error)
IOError(Error)
HashNotFound
ParameterError(String)
HashStringParsingFailure(DataHashHexParseError)
DeprecatedError(String)
InvalidOperation(String)
SizeMismatch
AuthError(AuthError)
PermitAcquisitionError(AcquireError)
FileReconstructionError(FileReconstructionError)
RuntimeError(RuntimeError)
Trait Implementations§
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<AcquireError> for DataError
impl From<AcquireError> for DataError
Source§fn from(source: AcquireError) -> Self
fn from(source: AcquireError) -> Self
Converts to this type from the input type.
Source§impl From<ClientError> for DataError
impl From<ClientError> for DataError
Source§fn from(source: ClientError) -> Self
fn from(source: ClientError) -> Self
Converts to this type from the input type.
Source§impl From<DataHashHexParseError> for DataError
impl From<DataHashHexParseError> for DataError
Source§fn from(source: DataHashHexParseError) -> Self
fn from(source: DataHashHexParseError) -> Self
Converts to this type from the input type.
Source§impl From<FileReconstructionError> for DataError
impl From<FileReconstructionError> for DataError
Source§fn from(source: FileReconstructionError) -> Self
fn from(source: FileReconstructionError) -> 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<ParutilsError<DataError>> for DataError
impl From<ParutilsError<DataError>> for DataError
Source§fn from(value: ParutilsError<DataError>) -> Self
fn from(value: ParutilsError<DataError>) -> Self
Converts to this type from the input type.
Source§impl From<RuntimeError> for DataError
impl From<RuntimeError> for DataError
Source§fn from(source: RuntimeError) -> Self
fn from(source: RuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DataError
impl !RefUnwindSafe for DataError
impl Send for DataError
impl Sync for DataError
impl Unpin for DataError
impl UnsafeUnpin 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> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for 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>
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> 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.