Skip to main content

Workload

Trait Workload 

Source
pub trait Workload:
    Sealed
    + Serve
    + Send
    + Sync
    + 'static { }
Expand description

What runs per connection: Sessions or a BlockingHandler. Sealed.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl Workload for UdpOnly

Available on crate feature udp only.
Source§

impl<F: SessionFactory> Workload for Sessions<F>

Source§

impl<H> Workload for BlockingHandler<H>
where H: Fn(&mut TcpConnection) -> Result<(), NetError> + Send + Sync + 'static,