Enum ffsend_api::action::upload::UploadError [−][src]
pub enum UploadError {
Progress,
Request,
Response(ResponseError),
Decode(ReqwestError),
ParseUrl(UrlParseError),
}Variants
ProgressFailed to start or update the uploading progress, because of this the upload can't continue.
RequestSending 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
impl From<UploadError> for Error[src]
impl From<UploadError> for Errorfn from(err: UploadError) -> Error[src]
fn from(err: UploadError) -> ErrorPerforms the conversion.
impl Fail for UploadError[src]
impl Fail for UploadErrorfn cause(&self) -> Option<&Fail>[src]
fn cause(&self) -> Option<&Fail>Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>[src]
fn backtrace(&self) -> Option<&Backtrace>Returns a reference to the Backtrace carried by this failure, if it carries one. Read more
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static, [src]
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static, Provides context for this failure. Read more
fn compat(self) -> Compat<Self>[src]
fn compat(self) -> Compat<Self>Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more
ⓘImportant traits for Causes<'f>fn causes(&self) -> Causes[src]
fn causes(&self) -> CausesReturns a iterator over the causes of this Fail with itself as the first item and the root_cause as the final item. Read more
fn root_cause(&self) -> &(Fail + 'static)[src]
fn root_cause(&self) -> &(Fail + 'static)Returns the "root cause" of this Fail - the last value in the cause chain which does not return an underlying cause. Read more
impl Display for UploadError[src]
impl Display for UploadErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Debug for UploadError[src]
impl Debug for UploadErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<UrlParseError> for UploadError[src]
impl From<UrlParseError> for UploadErrorfn from(err: UrlParseError) -> UploadError[src]
fn from(err: UrlParseError) -> UploadErrorPerforms the conversion.
Auto Trait Implementations
impl Send for UploadError
impl Send for UploadErrorimpl Sync for UploadError
impl Sync for UploadError