pub enum UploadError {
Progress,
Request,
UploadStream(WebSocketError),
InvalidResponse,
Response(ResponseError),
Decode(Error),
ParseUrl(ParseError),
}
Variants§
Progress
Failed to start or update the uploading progress, because of this the upload can’t continue.
Request
Sending the request to upload the file failed.
UploadStream(WebSocketError)
An error occurred while streaming the encrypted file (including file info, header and footer) for uploading over a websocket.
InvalidResponse
The server responded with data that was not understood, or did not respond at all while a response was espected.
Response(ResponseError)
The server responded with an error for uploading.
Decode(Error)
Failed to decode the upload response from the server. Maybe the server responded with data from a newer API version.
ParseUrl(ParseError)
Failed to parse the retrieved URL from the upload response.
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<Error> for UploadError
impl From<Error> for UploadError
Source§fn from(source: ReqwestError) -> Self
fn from(source: ReqwestError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for UploadError
impl From<ParseError> for UploadError
Source§fn from(source: UrlParseError) -> Self
fn from(source: UrlParseError) -> Self
Converts to this type from the input type.
Source§impl From<ResponseError> for UploadError
impl From<ResponseError> for UploadError
Source§fn from(source: ResponseError) -> Self
fn from(source: ResponseError) -> Self
Converts to this type from the input type.
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.
Source§impl From<WebSocketError> for UploadError
impl From<WebSocketError> for UploadError
Source§fn from(source: WebSocketError) -> Self
fn from(source: WebSocketError) -> 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 !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