[−][src]Enum uploads_im_client::UploadError
Represents an error that may occur when building and sending an image upload request.
Variants
BuildingRequest(UploadRequestURLBuildError)
Indicates a failure building an upload endpoint URL.
InvalidFilename(PathBuf)
Indicates that the provided filename was invalid.
SendingRequest(Error)
Indicates a upload request transmission error.
Indicates an error response returned by the upload API.
Fields of ResponseReturnedFailure
status_code: StatusCode
The status code returned by the server. Note that this code is contained in the body of the response, and not the header.
status_text: String
A string describing the error returned by the API.
Io(Error)
Indicates an error accessing a file for upload.
ParsingResponse(Error)
Indicates an error parsing the response from the upload API.
Trait Implementations
impl Debug for UploadError
[src]
impl Display for UploadError
[src]
impl Error for UploadError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<Error> for UploadError
[src]
impl From<Error> for UploadError
[src]
impl From<Error> for UploadError
[src]
impl From<UploadRequestURLBuildError> for UploadError
[src]
fn from(source: UploadRequestURLBuildError) -> Self
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,