pub enum SessionCommand {
Send(Vec<u8>),
SendStreamReliable {
stream_id: u32,
data: Bytes,
},
SendStreamUnreliable {
stream_id: u32,
data: Bytes,
},
CloseStream {
stream_id: u32,
},
Close,
}Expand description
Commands for the background session task
Variants§
Send(Vec<u8>)
Queue data for sending
SendStreamReliable
Send data on a specific stream reliably
SendStreamUnreliable
Send data on a specific stream unreliably
CloseStream
Close a specific stream
Close
Close the session
Auto Trait Implementations§
impl !Freeze for SessionCommand
impl RefUnwindSafe for SessionCommand
impl Send for SessionCommand
impl Sync for SessionCommand
impl Unpin for SessionCommand
impl UnsafeUnpin for SessionCommand
impl UnwindSafe for SessionCommand
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