Struct libp2p::webtransport_websys::Connection
source · pub struct Connection { /* private fields */ }
Available on crate feature
webtransport-websys
only.Expand description
An opened WebTransport connection.
Trait Implementations§
source§impl Debug for Connection
impl Debug for Connection
source§impl StreamMuxer for Connection
impl StreamMuxer for Connection
WebTransport native multiplexing
§type Substream = Stream
type Substream = Stream
Type of the object that represents the raw substream where data can be read and written.
source§fn poll_inbound(
self: Pin<&mut Connection>,
cx: &mut Context<'_>
) -> Poll<Result<<Connection as StreamMuxer>::Substream, <Connection as StreamMuxer>::Error>>
fn poll_inbound( self: Pin<&mut Connection>, cx: &mut Context<'_> ) -> Poll<Result<<Connection as StreamMuxer>::Substream, <Connection as StreamMuxer>::Error>>
Poll for new inbound substreams. Read more
source§fn poll_outbound(
self: Pin<&mut Connection>,
cx: &mut Context<'_>
) -> Poll<Result<<Connection as StreamMuxer>::Substream, <Connection as StreamMuxer>::Error>>
fn poll_outbound( self: Pin<&mut Connection>, cx: &mut Context<'_> ) -> Poll<Result<<Connection as StreamMuxer>::Substream, <Connection as StreamMuxer>::Error>>
Poll for a new, outbound substream.
source§fn poll_close(
self: Pin<&mut Connection>,
_cx: &mut Context<'_>
) -> Poll<Result<(), <Connection as StreamMuxer>::Error>>
fn poll_close( self: Pin<&mut Connection>, _cx: &mut Context<'_> ) -> Poll<Result<(), <Connection as StreamMuxer>::Error>>
Poll to close this
StreamMuxer
. Read moresource§fn poll(
self: Pin<&mut Connection>,
_cx: &mut Context<'_>
) -> Poll<Result<StreamMuxerEvent, <Connection as StreamMuxer>::Error>>
fn poll( self: Pin<&mut Connection>, _cx: &mut Context<'_> ) -> Poll<Result<StreamMuxerEvent, <Connection as StreamMuxer>::Error>>
Poll to allow the underlying connection to make progress. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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