Struct teloxide::error_handlers::IgnoringErrorHandler
source · pub struct IgnoringErrorHandler;
Expand description
A handler that silently ignores all errors.
Example
use teloxide::error_handlers::{ErrorHandler, IgnoringErrorHandler};
IgnoringErrorHandler::new().handle_error(()).await;
IgnoringErrorHandler::new().handle_error(404).await;
IgnoringErrorHandler::new().handle_error("error").await;
Implementations§
Trait Implementations§
source§impl Clone for IgnoringErrorHandler
impl Clone for IgnoringErrorHandler
source§fn clone(&self) -> IgnoringErrorHandler
fn clone(&self) -> IgnoringErrorHandler
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more