pub struct Session { /* private fields */ }Expand description
A RoQ session.
Implementations§
Source§impl Session
impl Session
Sourcepub fn new(conn: Connection) -> Self
pub fn new(conn: Connection) -> Self
Creates a new session, based on an existing Connection.
Sourcepub async fn new_send_flow(&self, id: VarInt) -> Result<SendFlow>
pub async fn new_send_flow(&self, id: VarInt) -> Result<SendFlow>
Create a new SendFlow.
Sourcepub async fn new_receive_flow(&self, id: VarInt) -> Result<ReceiveFlow>
pub async fn new_receive_flow(&self, id: VarInt) -> Result<ReceiveFlow>
Creates a new receive flow.
If a message has already been received on a flow will return that flow.
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 !UnwindSafe for Session
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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