Enum carapax::api::ExecuteError
source · pub enum ExecuteError {
Http(Error),
Payload(PayloadError),
Response(ResponseError),
TooManyRequests,
}
Expand description
Represents errors that can occur during the execution of a method using the Telegram Bot API client.
Variants§
Http(Error)
An error indicating a failure to send an HTTP request.
Payload(PayloadError)
An error indicating a failure to build an HTTP request payload.
Response(ResponseError)
An error received from the Telegram server in response to the execution request.
TooManyRequests
An error indicating that the client has exceeded the rate limit for API requests.
Trait Implementations§
source§impl Debug for ExecuteError
impl Debug for ExecuteError
source§impl Display for ExecuteError
impl Display for ExecuteError
source§impl Error for ExecuteError
impl Error for ExecuteError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<()> for ExecuteError
impl From<()> for ExecuteError
source§fn from(original: ()) -> ExecuteError
fn from(original: ()) -> ExecuteError
Converts to this type from the input type.
source§impl From<Error> for ExecuteError
impl From<Error> for ExecuteError
source§fn from(original: Error) -> ExecuteError
fn from(original: Error) -> ExecuteError
Converts to this type from the input type.
source§impl From<PayloadError> for ExecuteError
impl From<PayloadError> for ExecuteError
source§fn from(original: PayloadError) -> ExecuteError
fn from(original: PayloadError) -> ExecuteError
Converts to this type from the input type.
source§impl From<ResponseError> for ExecuteError
impl From<ResponseError> for ExecuteError
source§fn from(original: ResponseError) -> ExecuteError
fn from(original: ResponseError) -> ExecuteError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExecuteError
impl !RefUnwindSafe for ExecuteError
impl Send for ExecuteError
impl Sync for ExecuteError
impl Unpin for ExecuteError
impl !UnwindSafe for ExecuteError
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more