Struct s2n_netbench::multiplex::Connection
source · pub struct Connection<T: AsyncRead + AsyncWrite> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<T: AsyncRead + AsyncWrite> Connection for Connection<T>
impl<T: AsyncRead + AsyncWrite> Connection for Connection<T>
fn id(&self) -> u64
fn poll_open_bidirectional_stream( &mut self, id: u64, cx: &mut Context<'_> ) -> Poll<Result<()>>
fn poll_open_send_stream( &mut self, id: u64, cx: &mut Context<'_> ) -> Poll<Result<()>>
fn poll_accept_stream( &mut self, _cx: &mut Context<'_> ) -> Poll<Result<Option<u64>>>
fn poll_send( &mut self, owner: Owner, id: u64, bytes: u64, cx: &mut Context<'_> ) -> Poll<Result<u64>>
fn poll_receive( &mut self, owner: Owner, id: u64, bytes: u64, cx: &mut Context<'_> ) -> Poll<Result<u64>>
fn poll_send_finish( &mut self, owner: Owner, id: u64, _cx: &mut Context<'_> ) -> Poll<Result<()>>
fn poll_receive_finish( &mut self, owner: Owner, id: u64, cx: &mut Context<'_> ) -> Poll<Result<()>>
fn poll_progress(&mut self, cx: &mut Context<'_>) -> Poll<Result<()>>
fn poll_finish(&mut self, cx: &mut Context<'_>) -> Poll<Result<()>>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Connection<T>where
T: RefUnwindSafe,
impl<T> Send for Connection<T>where
T: Send,
impl<T> Sync for Connection<T>where
T: Sync,
impl<T> Unpin for Connection<T>
impl<T> UnwindSafe for Connection<T>where
T: UnwindSafe,
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