Commit d99ba5c 1 parent 2a5fbcb commit d99ba5c Copy full SHA for d99ba5c
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 5
5
//!
6
6
//! The chain is implemented as a vector of [`Chainable`] handlers. It is
7
7
//! traversed by calling [`Chain::traverse`], which will call
8
- //! [`Chainable::chain`] on each handler in the chain.
8
+ //! [`Chainable::chain`] on each handler in the chain consecutively .
9
9
//!
10
10
//! To add external handlers, you can implement the [`Chainable`] trait and add
11
11
//! the handler to the chain.
@@ -25,7 +25,7 @@ use tokio::sync::Mutex;
25
25
/// - If the chain should continue, the handler should return
26
26
/// [`ChainResult::Next`]. This will traverse the next handler in the chain.
27
27
/// - If the chain should stop, the handler should return [`ChainResult::Done`].
28
- /// This will stop the chain immediately and return the result of the handler .
28
+ /// All subsequent chain elements are skipped and the result is returned .
29
29
#[ derive( Debug , PartialEq ) ]
30
30
pub enum ChainResult < T , R > {
31
31
/// Continue to the next handler in the chain.
You can’t perform that action at this time.
0 commit comments