#[non_exhaustive]pub enum TencentCloudError {
Http {
context: Box<HttpFailure>,
},
Transport {
context: Box<TransportFailure>,
},
TransportBuild {
source: Error,
},
Service {
context: Box<ServiceFailure>,
},
Url(ParseError),
Json(Error),
Signing(SigningError),
}
Variants (Non-exhaustive)ยง
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Http
Fields
ยง
context: Box<HttpFailure>
Transport
Fields
ยง
context: Box<TransportFailure>
TransportBuild
Service
Fields
ยง
context: Box<ServiceFailure>
Url(ParseError)
Json(Error)
Signing(SigningError)
Implementationsยง
Sourceยงimpl TencentCloudError
impl TencentCloudError
pub fn http(code: StatusCode, method: Method, url: Url, body: String) -> Self
pub fn transport(source: Error, method: Method, url: Url) -> Self
pub fn transport_build(source: Error) -> Self
pub fn service( code: impl Into<String>, message: impl Into<String>, request_id: Option<String>, ) -> Self
Trait Implementationsยง
Sourceยงimpl Debug for TencentCloudError
impl Debug for TencentCloudError
Sourceยงimpl Display for TencentCloudError
impl Display for TencentCloudError
Sourceยงimpl Error for TencentCloudError
impl Error for TencentCloudError
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 TencentCloudError
impl From<Error> for TencentCloudError
Sourceยงimpl From<ParseError> for TencentCloudError
impl From<ParseError> for TencentCloudError
Sourceยงfn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Sourceยงimpl From<SigningError> for TencentCloudError
impl From<SigningError> for TencentCloudError
Sourceยงfn from(source: SigningError) -> Self
fn from(source: SigningError) -> Self
Converts to this type from the input type.
Auto Trait Implementationsยง
impl Freeze for TencentCloudError
impl !RefUnwindSafe for TencentCloudError
impl Send for TencentCloudError
impl Sync for TencentCloudError
impl Unpin for TencentCloudError
impl !UnwindSafe for TencentCloudError
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
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Sourceยงimpl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Sourceยงfn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.