pub struct Session { /* private fields */ }Expand description
A MoQ transport session, wrapping a WebTransport connection.
Created via:
crate::Client::connectfor clients.crate::Server::acceptfor servers.
Implementations§
Source§impl Session
impl Session
Sourcepub fn send_bandwidth(&self) -> Option<BandwidthConsumer>
pub fn send_bandwidth(&self) -> Option<BandwidthConsumer>
Returns a consumer for the estimated send bitrate (from the congestion controller).
Returns None if the QUIC backend doesn’t support bandwidth estimation.
Sourcepub fn recv_bandwidth(&self) -> Option<BandwidthConsumer>
pub fn recv_bandwidth(&self) -> Option<BandwidthConsumer>
Returns a consumer for the estimated receive bitrate (from PROBE).
Returns None if the MoQ version doesn’t support PROBE (requires moq-lite-03+).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl !RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl !UnwindSafe for Session
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more