pub enum UploadError {
}Expand description
Errors that can occur during an upload.
Variants§
InvalidOptions(String)
The upload options are invalid.
Io(Error)
An I/O error occurred while reading the data to upload.
RPC(RPCError)
A host RPC error occurred during the upload.
Encoder(Error)
The erasure encoder encountered an error.
NotEnoughShards(u8, u8)
Not enough shards were successfully uploaded.
OutOfRange(usize, usize)
The requested range is out of bounds.
Timeout(Elapsed)
A host RPC timed out.
QueueError(QueueError)
An error from the host queue.
SemaphoreError(AcquireError)
An internal semaphore error.
JoinError(JoinError)
An internal task join error.
ApiError(Error)
An error from the indexer API.
InvalidSlabId
The slab ID returned by the indexer does not match the expected value.
Cancelled
The upload was cancelled.
Trait Implementations§
Source§impl Debug for UploadError
impl Debug for UploadError
Source§impl Display for UploadError
impl Display for UploadError
Source§impl Error for UploadError
impl Error for UploadError
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 UploadError
impl From<AcquireError> for UploadError
Source§fn from(source: AcquireError) -> Self
fn from(source: AcquireError) -> Self
Converts to this type from the input type.
Source§impl From<Elapsed> for UploadError
impl From<Elapsed> for UploadError
Source§impl From<Error> for UploadError
impl From<Error> for UploadError
Source§impl From<Error> for UploadError
impl From<Error> for UploadError
Source§impl From<JoinError> for UploadError
impl From<JoinError> for UploadError
Source§impl From<QueueError> for UploadError
impl From<QueueError> for UploadError
Source§fn from(source: QueueError) -> Self
fn from(source: QueueError) -> Self
Converts to this type from the input type.
Source§impl From<RPCError> for UploadError
impl From<RPCError> for UploadError
Source§impl From<UploadError> for Error
impl From<UploadError> for Error
Source§fn from(source: UploadError) -> Self
fn from(source: UploadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UploadError
impl !RefUnwindSafe for UploadError
impl Send for UploadError
impl Sync for UploadError
impl Unpin for UploadError
impl UnsafeUnpin for UploadError
impl !UnwindSafe for UploadError
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> 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> Pointable for T
impl<T> Pointable for T
Source§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.