pub struct RecvStream {
pub transport: Rc<WebTransport>,
pub stream: WebTransportReceiveStream,
pub reader: Reader,
pub unlock_reader_on_drop: bool,
}
Expand description
Recv the data from a WebTransport stream.
Fields§
§transport: Rc<WebTransport>
The WebTransport instance.
stream: WebTransportReceiveStream
The handle to the stream to read from.
reader: Reader
A reader to conduct the operation.
unlock_reader_on_drop: bool
Unlock the reader on drop.
Trait Implementations§
Source§impl AsyncRead for RecvStream
impl AsyncRead for RecvStream
Source§impl Drop for RecvStream
impl Drop for RecvStream
Source§impl Finished for RecvStream
impl Finished for RecvStream
Source§impl Read for RecvStream
impl Read for RecvStream
Source§type Error = StreamReadError
type Error = StreamReadError
An error that can occur while reading the stream.
Source§impl ReadAbort for RecvStream
impl ReadAbort for RecvStream
Auto Trait Implementations§
impl Freeze for RecvStream
impl !RefUnwindSafe for RecvStream
impl !Send for RecvStream
impl !Sync for RecvStream
impl Unpin for RecvStream
impl !UnwindSafe for RecvStream
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