mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Improve docs
This commit is contained in:
parent
d750e1c3dc
commit
8345936a95
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
|||
// Infallible used here instead of `!` to be compatible with rust <1.41.
|
||||
use std::{convert::Infallible, future::Future, pin::Pin};
|
||||
|
||||
/// A handler of an error.
|
||||
/// An asynchronous handler of an error.
|
||||
pub trait ErrorHandler<E> {
|
||||
fn handle_error<'a>(
|
||||
&'a self,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use std::{future::Future, pin::Pin};
|
||||
|
||||
/// A handler of a successful value.
|
||||
/// An asynchronous handler of a value.
|
||||
pub trait Handler<T, E> {
|
||||
#[must_use]
|
||||
fn handle<'a>(
|
||||
|
|
Loading…
Reference in a new issue