pub struct MuxStreamRead {
pub stream_id: u32,
pub stream_type: StreamType,
/* private fields */
}
Expand description
Read side of a multiplexor stream.
Fields§
§stream_id: u32
ID of the stream.
stream_type: StreamType
Type of the stream.
Implementations§
Source§impl MuxStreamRead
impl MuxStreamRead
Sourcepub fn into_stream(self) -> MuxStreamIoStream
pub fn into_stream(self) -> MuxStreamIoStream
Turn the read half into one that implements futures Stream
, consuming it.
Sourcepub fn get_close_reason(&self) -> Option<CloseReason>
pub fn get_close_reason(&self) -> Option<CloseReason>
Get the stream’s close reason, if it was closed.
Auto Trait Implementations§
impl !Freeze for MuxStreamRead
impl !RefUnwindSafe for MuxStreamRead
impl Send for MuxStreamRead
impl Sync for MuxStreamRead
impl Unpin for MuxStreamRead
impl !UnwindSafe for MuxStreamRead
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