Skip to main content

UserHandler

Type Alias UserHandler 

Source
pub type UserHandler = Arc<dyn Fn(Datagram) -> Option<Datagram> + Send + Sync>;
Expand description

Handles a datagram of user traffic on the thread that received it, or gives it back to be queued on Incoming like the others.

Aliased Typeยง

pub struct UserHandler { /* private fields */ }