IntoHandled

Trait IntoHandled 

Source
pub trait IntoHandled<T> {
    // Required method
    fn into_handled(self) -> Handled<T>;
}
Expand description

Trait for converting handler return values into Handled.

This trait allows handlers to return either () (which becomes Handled::Yes) or an explicit Handled<T> value for more control over handler propagation.

Required Methods§

Source

fn into_handled(self) -> Handled<T>

Convert this value into a Handled<T>.

Implementations on Foreign Types§

Source§

impl<T> IntoHandled<T> for ()

Implementors§

Source§

impl<T> IntoHandled<T> for Handled<T>