Skip to main content

Session

Trait Session 

Source
pub trait Session: StreamOps + DatagramOps { }
Expand description

Base WebTransport session operations.

A blanket implementation for all the types that implement the required base session APIs.

You might want to depend in the individual traits that this trait requires (session::base::StreamOps or session::base::DatagramOps) instead in your code, if you know you will only be working with the subset of the API.

Also, consider depending on the individual stream/datagram APIs directly.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T> Session for T