pub struct IgnoringErrorHandler;Expand description
A handler that silently ignores all errors.
§Example
use dptree::di::DependencyMap;
use teloxide::error_handlers::{ErrorHandler, IgnoringErrorHandler};
IgnoringErrorHandler::new().handle_error((), DependencyMap::new()).await;
IgnoringErrorHandler::new().handle_error(404, DependencyMap::new()).await;
IgnoringErrorHandler::new().handle_error("error", DependencyMap::new()).await;Implementations§
Trait Implementations§
Source§impl Clone for IgnoringErrorHandler
impl Clone for IgnoringErrorHandler
impl Copy for IgnoringErrorHandler
Source§impl<E> ErrorHandler<E> for IgnoringErrorHandler
impl<E> ErrorHandler<E> for IgnoringErrorHandler
Source§fn handle_error(
self: Arc<Self>,
_: E,
_: DependencyMap,
) -> BoxFuture<'static, ()>
fn handle_error( self: Arc<Self>, _: E, _: DependencyMap, ) -> BoxFuture<'static, ()>
Handles
error with the dependencies available at the point of failure. Read moreAuto Trait Implementations§
impl Forget for IgnoringErrorHandler
impl Freeze for IgnoringErrorHandler
impl Move for IgnoringErrorHandler
impl RefUnwindSafe for IgnoringErrorHandler
impl Send for IgnoringErrorHandler
impl Sync for IgnoringErrorHandler
impl Unpin for IgnoringErrorHandler
impl UnsafeUnpin for IgnoringErrorHandler
impl UnwindSafe for IgnoringErrorHandler
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Erasable for T
impl<T> Erasable for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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