xwt_core/
base.rs

1//! The base WebTransport operations definitions.
2
3use crate::session;
4
5/// Base WebTransport session operations.
6///
7/// A blanket implementation for all the types that implement
8/// the required base session APIs.
9///
10/// You might want to depend in the individual traits that this trait requires
11/// ([`session::base::StreamOps`] or [`session::base::DatagramOps`]) instead in
12/// your code, if you know you will only be working with the subset of the API.
13///
14/// Also, consider depending on the individual stream/datagram APIs directly.
15pub trait Session: session::base::StreamOps + session::base::DatagramOps {}
16
17impl<T> Session for T where T: session::base::StreamOps + session::base::DatagramOps {}