Struct quic_rpc::transport::quinn_flume_socket::FlumeSocket
source · pub struct FlumeSocket(/* private fields */);
Expand description
An implementation of quinn::AsyncUdpSocket that uses flume channels
Implementations§
source§impl FlumeSocket
impl FlumeSocket
Trait Implementations§
source§impl AsyncUdpSocket for FlumeSocket
impl AsyncUdpSocket for FlumeSocket
source§fn poll_send(
&self,
state: &UdpState,
cx: &mut Context<'_>,
transmits: &[Transmit],
) -> Poll<Result<usize, Error>>
fn poll_send( &self, state: &UdpState, cx: &mut Context<'_>, transmits: &[Transmit], ) -> Poll<Result<usize, Error>>
Send UDP datagrams from
transmits
, or register to be woken if sending may succeed in the
futuresource§fn poll_recv(
&self,
cx: &mut Context<'_>,
bufs: &mut [IoSliceMut<'_>],
meta: &mut [RecvMeta],
) -> Poll<Result<usize>>
fn poll_recv( &self, cx: &mut Context<'_>, bufs: &mut [IoSliceMut<'_>], meta: &mut [RecvMeta], ) -> Poll<Result<usize>>
Receive UDP datagrams, or register to be woken if receiving may succeed in the future
source§fn local_addr(&self) -> Result<SocketAddr>
fn local_addr(&self) -> Result<SocketAddr>
Look up the local IP address and port used by this socket
source§fn may_fragment(&self) -> bool
fn may_fragment(&self) -> bool
Whether datagrams might get fragmented into multiple parts Read more
Auto Trait Implementations§
impl Freeze for FlumeSocket
impl RefUnwindSafe for FlumeSocket
impl Send for FlumeSocket
impl Sync for FlumeSocket
impl Unpin for FlumeSocket
impl UnwindSafe for FlumeSocket
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