Skip to main content

IntoHandler

Trait IntoHandler 

Source
pub trait IntoHandler<Handler, Endpoint>
where Handler: PacketHandler<Endpoint> + Send + 'static,
{ // Required method fn into_handler(self, mtu: Option<u32>) -> Handler; }

Required Methods§

Source

fn into_handler(self, mtu: Option<u32>) -> Handler

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<Endpoint: Debug + Clone + Ord + Eq + Hash + Send + 'static> IntoHandler<AppHandler<Endpoint>, Endpoint> for AppBuilder<Endpoint>

Source§

impl<Handler, Endpoint> IntoHandler<Handler, Endpoint> for Handler
where Handler: PacketHandler<Endpoint> + Send + 'static,