Improve docs

This commit is contained in:
Temirkhan Myrzamadi 2019-12-30 22:44:27 +06:00
parent d750e1c3dc
commit 8345936a95
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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>(