pub struct StreamHandle {
pub stream_id: u32,
pub rx: Receiver<StreamMessage>,
}Expand description
Handle returned when a stream is registered with the demultiplexer.
Fields§
§stream_id: u32The stream ID assigned to this stream
rx: Receiver<StreamMessage>Receiver end for incoming packets
Auto Trait Implementations§
impl Freeze for StreamHandle
impl RefUnwindSafe for StreamHandle
impl Send for StreamHandle
impl Sync for StreamHandle
impl Unpin for StreamHandle
impl UnsafeUnpin for StreamHandle
impl UnwindSafe for StreamHandle
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