pub enum TurnkeyClientError {
Show 19 variants
BuilderMissingApiKey,
ReqwestBuilder(Error),
Http(Error),
UnexpectedHttpStatus(u16, String),
MissingContentTypeHeader,
HeaderToStrError(String),
HeaderFromStrError(String),
UnexpectedMimeType(String),
Decode(String, Error),
SerdeJsonFailure(Error),
MissingActivity,
MissingResult,
MissingInnerResult,
UnexpectedActivityStatus(String),
UnexpectedInnerActivityResult(String),
ActivityFailed(Option<Status>),
ActivityRequiresApproval(String),
ExceededRetries(usize),
StamperError(StamperError),
}Variants§
BuilderMissingApiKey
ReqwestBuilder(Error)
Http(Error)
UnexpectedHttpStatus(u16, String)
MissingContentTypeHeader
HeaderToStrError(String)
HeaderFromStrError(String)
UnexpectedMimeType(String)
Decode(String, Error)
SerdeJsonFailure(Error)
MissingActivity
MissingResult
MissingInnerResult
UnexpectedActivityStatus(String)
UnexpectedInnerActivityResult(String)
ActivityFailed(Option<Status>)
ActivityRequiresApproval(String)
ExceededRetries(usize)
StamperError(StamperError)
Trait Implementations§
Source§impl Debug for TurnkeyClientError
impl Debug for TurnkeyClientError
Source§impl Display for TurnkeyClientError
impl Display for TurnkeyClientError
Source§impl Error for TurnkeyClientError
impl Error for TurnkeyClientError
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 TurnkeyClientError
impl From<Error> for TurnkeyClientError
Source§impl From<Error> for TurnkeyClientError
impl From<Error> for TurnkeyClientError
Source§impl From<StamperError> for TurnkeyClientError
impl From<StamperError> for TurnkeyClientError
Source§fn from(source: StamperError) -> Self
fn from(source: StamperError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TurnkeyClientError
impl !RefUnwindSafe for TurnkeyClientError
impl Send for TurnkeyClientError
impl Sync for TurnkeyClientError
impl Unpin for TurnkeyClientError
impl UnsafeUnpin for TurnkeyClientError
impl !UnwindSafe for TurnkeyClientError
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.