pub enum DFError {
Show 48 variants
IO(Error),
MpscSend(String),
SendTimeout,
HashRing(String),
HostNotFound(String),
TaskNotFound(String),
PieceNotFound(String),
PieceStateIsFailed(String),
WaitForPieceFinishedTimeout(String),
AvailableManagerNotFound,
AvailableSchedulersNotFound,
DownloadFromParentFailed(DownloadFromParentFailed),
ColumnFamilyNotFound(String),
InvalidStateTransition(String, String),
InvalidState(String),
InvalidURI(String),
InvalidPeer(String),
SchedulerClientNotFound,
UnexpectedResponse,
DigestMismatch(String, String),
ContentLengthMismatch(u64, u64),
MaxScheduleCountExceeded(u32),
InvalidContentLength,
InvalidPieceLength,
InvalidParameter,
Infallible(Infallible),
Utf8(Utf8Error),
Unknown(String),
Unimplemented,
EmptyHTTPRangeError,
Unauthorized,
TonicStatus(Status),
TonicTransportError(Error),
TonicReflectionServerError(Error),
TokioStreamElapsed(Elapsed),
HeadersError(Error),
URLParseError(ParseError),
ReqwestError(Error),
ReqwestMiddlewareError(Error),
OpenDALError(Error),
HyperError(Error),
BackendError(Box<BackendError>),
HyperUtilClientLegacyError(Error),
ExternalError(ExternalError),
MaxDownloadFilesExceeded(usize),
Unsupported(String),
TokioJoinError(JoinError),
ValidationError(String),
}
Expand description
DFError is the error for dragonfly.
Variants§
IO(Error)
IO is the error for IO operation.
MpscSend(String)
MpscSend is the error for send.
SendTimeout
SendTimeout is the error for send timeout.
HashRing(String)
HashRing is the error for hashring.
HostNotFound(String)
HostNotFound is the error when the host is not found.
TaskNotFound(String)
TaskNotFound is the error when the task is not found.
PieceNotFound(String)
PieceNotFound is the error when the piece is not found.
PieceStateIsFailed(String)
PieceStateIsFailed is the error when the piece state is failed.
WaitForPieceFinishedTimeout(String)
WaitForPieceFinishedTimeout is the error when the wait for piece finished timeout.
AvailableManagerNotFound
AvailableManagerNotFound is the error when the available manager is not found.
AvailableSchedulersNotFound
AvailableSchedulersNotFound is the error when the available schedulers is not found.
DownloadFromParentFailed(DownloadFromParentFailed)
DownloadFromParentFailed is the error when the download from parent is failed.
ColumnFamilyNotFound(String)
ColumnFamilyNotFound is the error when the column family is not found.
InvalidStateTransition(String, String)
InvalidStateTransition is the error when the state transition is invalid.
InvalidState(String)
InvalidState is the error when the state is invalid.
InvalidURI(String)
InvalidURI is the error when the uri is invalid.
InvalidPeer(String)
InvalidPeer is the error when the peer is invalid.
SchedulerClientNotFound
SchedulerClientNotFound is the error when the scheduler client is not found.
UnexpectedResponse
UnexpectedResponse is the error when the response is unexpected.
DigestMismatch(String, String)
DigestMismatch is the error when the digest is mismatch.
ContentLengthMismatch(u64, u64)
ContentLengthMismatch is the error when the content length is mismatch.
MaxScheduleCountExceeded(u32)
MaxScheduleCountExceeded is the error when the max schedule count is exceeded.
InvalidContentLength
InvalidContentLength is the error when the content length is invalid.
InvalidPieceLength
InvalidPieceLength is the error when the piece length is invalid.
InvalidParameter
InvalidParameter is the error when the parameter is invalid.
Infallible(Infallible)
Infallible is the error for infallible.
Utf8(Utf8Error)
Utf8 is the error for utf8.
Unknown(String)
Unknown is the error when the error is unknown.
Unimplemented
Unimplemented is the error when the feature is not implemented.
EmptyHTTPRangeError
EmptyHTTPRangeError is the error when the range fallback error is empty.
Unauthorized is the error for unauthorized.
TonicStatus(Status)
TonicStatus is the error for tonic status.
TonicTransportError(Error)
TonicTransportError is the error for tonic transport.
TonicReflectionServerError(Error)
TonicReflectionServerError is the error for tonic reflection server.
TokioStreamElapsed(Elapsed)
TonicStreamElapsed is the error for tonic stream elapsed.
HeadersError(Error)
HeadersError is the error for headers.
URLParseError(ParseError)
URLParseError is the error for url parse.
ReqwestError(Error)
ReqwestError is the error for reqwest.
ReqwestMiddlewareError(Error)
ReqwestMiddlewareError is the error for reqwest middleware.
OpenDALError(Error)
OpenDALError is the error for opendal.
HyperError(Error)
HyperError is the error for hyper.
BackendError(Box<BackendError>)
BackendError is the error for backend.
HyperUtilClientLegacyError(Error)
HyperUtilClientLegacyError is the error for hyper util client legacy.
ExternalError(ExternalError)
ExternalError is the error for external error.
MaxDownloadFilesExceeded(usize)
MaxDownloadFilesExceeded is the error for max download files exceeded.
Unsupported(String)
Unsupported is the error for unsupported.
TokioJoinError(JoinError)
TokioJoinError is the error for tokio join.
ValidationError(String)
ValidationError is the error for validate.
Trait Implementations§
Source§impl Error for DFError
impl Error for DFError
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<ExternalError> for DFError
impl From<ExternalError> for DFError
Source§fn from(source: ExternalError) -> Self
fn from(source: ExternalError) -> Self
Source§impl From<Infallible> for DFError
impl From<Infallible> for DFError
Source§fn from(source: Infallible) -> Self
fn from(source: Infallible) -> Self
Source§impl From<ParseError> for DFError
impl From<ParseError> for DFError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Source§impl<T> From<SendTimeoutError<T>> for DFError
SendTimeoutError is the error for send timeout.
impl<T> From<SendTimeoutError<T>> for DFError
SendTimeoutError is the error for send timeout.
Source§fn from(err: SendTimeoutError<T>) -> Self
fn from(err: SendTimeoutError<T>) -> Self
Auto Trait Implementations§
impl !Freeze for DFError
impl !RefUnwindSafe for DFError
impl Send for DFError
impl Sync for DFError
impl Unpin for DFError
impl !UnwindSafe for DFError
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> 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>
T
in a tonic::Request