Enum ffsend_api::action::upload::UploadError
source · pub enum UploadError {
Progress,
Request,
Response(ResponseError),
Decode(ReqwestError),
ParseUrl(UrlParseError),
}
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.
Response(ResponseError)
The server responded with an error while uploading.
Decode(ReqwestError)
Failed to decode the upload response from the server. Maybe the server responded with data from a newer API version.
ParseUrl(UrlParseError)
Failed to parse the retrieved URL from the upload response.
Trait Implementations
sourceimpl Debug for UploadError
impl Debug for UploadError
sourceimpl Display for UploadError
impl Display for UploadError
sourceimpl Fail for UploadError
impl Fail for UploadError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl From<ParseError> for UploadError
impl From<ParseError> for UploadError
sourcefn from(err: UrlParseError) -> UploadError
fn from(err: UrlParseError) -> UploadError
Converts to this type from the input type.
sourceimpl From<UploadError> for Error
impl From<UploadError> for Error
sourcefn from(err: UploadError) -> Error
fn from(err: UploadError) -> Error
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for UploadError
impl Send for UploadError
impl Sync for UploadError
impl Unpin for UploadError
impl !UnwindSafe for UploadError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more