pub struct QuicClient {
pub endpoint: Endpoint,
pub connection: Connection,
pub bi_streams: IncomingBiStreams,
}
Fields§
§endpoint: Endpoint
§connection: Connection
§bi_streams: IncomingBiStreams
Trait Implementations§
Source§impl QuicSocket for QuicClient
impl QuicSocket for QuicClient
fn new<'async_trait>(
_addr: Option<SocketAddr>,
remote_url: Option<String>,
host: Option<String>,
) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>where
Self: 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 mut self,
payload: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn recv<'life0, 'life1, 'async_trait>(
&'life0 mut self,
buf: &'life1 mut [u8],
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for QuicClient
impl !RefUnwindSafe for QuicClient
impl Send for QuicClient
impl Sync for QuicClient
impl Unpin for QuicClient
impl !UnwindSafe for QuicClient
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