pub enum PostmarkClientError {
Unauthorized,
RequestToLarge,
UnprocessableEntity(APIError),
RateLimitExceeded,
InternalServerError,
ServiceUnavailable,
Reqwest(Error),
UnknownPostmarkStatus(StatusCode),
}
Expand description
Represents the types of errors that can be encountered
Variants§
Postmark returned an unauthorized status
https://postmarkapp.com/developer/api/overview#response-codes
RequestToLarge
Postmark returned a request to large status
https://postmarkapp.com/developer/api/overview#response-codes
UnprocessableEntity(APIError)
Postmark returned an unprossable entity status
https://postmarkapp.com/developer/api/overview#response-codes
RateLimitExceeded
Postmark returned a rate limit exceeded status
https://postmarkapp.com/developer/api/overview#response-codes
InternalServerError
Postmark returned an internal server error status
https://postmarkapp.com/developer/api/overview#response-codes
Postmark returned a service unavailable status
https://postmarkapp.com/developer/api/overview#response-codes
Reqwest(Error)
Error from reqwest
UnknownPostmarkStatus(StatusCode)
Postmark returned an unknown status
https://postmarkapp.com/developer/api/overview#response-codes
Trait Implementations§
Source§impl Debug for PostmarkClientError
impl Debug for PostmarkClientError
Source§impl Display for PostmarkClientError
impl Display for PostmarkClientError
Source§impl Error for PostmarkClientError
impl Error for PostmarkClientError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for PostmarkClientError
impl !RefUnwindSafe for PostmarkClientError
impl Send for PostmarkClientError
impl Sync for PostmarkClientError
impl Unpin for PostmarkClientError
impl !UnwindSafe for PostmarkClientError
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
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.