Skip to main content

HandlerWithoutStateExt

Trait HandlerWithoutStateExt 

Source
pub trait HandlerWithoutStateExt<T>: Handler<T, ()> + Sized {
    // Provided method
    fn into_service(self) -> HandlerService<Self, T, ()> { ... }
}
Expand description

Extension trait for handlers that don’t require state.

Provided Methods§

Source

fn into_service(self) -> HandlerService<Self, T, ()>

Convert this handler into a service without requiring state.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<H, T> HandlerWithoutStateExt<T> for H
where H: Handler<T, ()>,