mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-24 23:57:38 +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.
|
// Infallible used here instead of `!` to be compatible with rust <1.41.
|
||||||
use std::{convert::Infallible, future::Future, pin::Pin};
|
use std::{convert::Infallible, future::Future, pin::Pin};
|
||||||
|
|
||||||
/// A handler of an error.
|
/// An asynchronous handler of an error.
|
||||||
pub trait ErrorHandler<E> {
|
pub trait ErrorHandler<E> {
|
||||||
fn handle_error<'a>(
|
fn handle_error<'a>(
|
||||||
&'a self,
|
&'a self,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use std::{future::Future, pin::Pin};
|
use std::{future::Future, pin::Pin};
|
||||||
|
|
||||||
/// A handler of a successful value.
|
/// An asynchronous handler of a value.
|
||||||
pub trait Handler<T, E> {
|
pub trait Handler<T, E> {
|
||||||
#[must_use]
|
#[must_use]
|
||||||
fn handle<'a>(
|
fn handle<'a>(
|
||||||
|
|
Loading…
Add table
Reference in a new issue