pub enum OSSError {
Object {
status_code: StatusCode,
message: String,
},
Io(Error),
String(FromUtf8Error),
Reqwest(Error),
Qxml(Error),
XmlParse(Error),
Http(HttpError),
Sign(InvalidLength),
Unknown,
}
Variants§
Object
Io(Error)
String(FromUtf8Error)
Reqwest(Error)
Qxml(Error)
XmlParse(Error)
Http(HttpError)
Sign(InvalidLength)
Unknown
Trait Implementations§
Source§impl Error for OSSError
impl Error for OSSError
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 OSSError
impl From<Error> for OSSError
Source§fn from(source: ReqwestError) -> Self
fn from(source: ReqwestError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for OSSError
impl From<FromUtf8Error> for OSSError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHeaderName> for OSSError
impl From<InvalidHeaderName> for OSSError
Source§fn from(e: HttpInvalidHeaderNameError) -> OSSError
fn from(e: HttpInvalidHeaderNameError) -> OSSError
Converts to this type from the input type.
Source§impl From<InvalidHeaderValue> for OSSError
impl From<InvalidHeaderValue> for OSSError
Source§fn from(e: HttpInvalidHeaderValueError) -> OSSError
fn from(e: HttpInvalidHeaderValueError) -> OSSError
Converts to this type from the input type.
Source§impl From<InvalidLength> for OSSError
impl From<InvalidLength> for OSSError
Source§fn from(source: InvalidLength) -> Self
fn from(source: InvalidLength) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OSSError
impl !RefUnwindSafe for OSSError
impl Send for OSSError
impl Sync for OSSError
impl Unpin for OSSError
impl !UnwindSafe for OSSError
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