pub enum InfoError {
Request,
Response(ResponseError),
Decode(Error),
}
Variants§
Request
Sending the request to fetch the file info failed.
Response(ResponseError)
The server responded with an error while fetching the file info.
Decode(Error)
Failed to decode the info response from the server. Maybe the server responded with data from a newer API version.
Trait Implementations§
Source§impl Error for InfoError
impl Error for InfoError
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 InfoError
impl From<Error> for InfoError
Source§fn from(source: ReqwestError) -> Self
fn from(source: ReqwestError) -> Self
Converts to this type from the input type.
Source§impl From<ResponseError> for InfoError
impl From<ResponseError> for InfoError
Source§fn from(source: ResponseError) -> Self
fn from(source: ResponseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InfoError
impl !RefUnwindSafe for InfoError
impl Send for InfoError
impl Sync for InfoError
impl Unpin for InfoError
impl !UnwindSafe for InfoError
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