pub struct QuicServer {
pub endpoint: Endpoint,
pub connection: Connection,
pub bi_streams: IncomingBiStreams,
}Fields§
§endpoint: Endpoint§connection: Connection§bi_streams: IncomingBiStreamsTrait Implementations§
Source§impl QuicSocket for QuicServer
impl QuicSocket for QuicServer
fn new<'async_trait>( addr: Option<SocketAddr>, _remote_url: Option<String>, _host: Option<String>, ) -> Pin<Box<dyn Future<Output = QuicServer> + Send + '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 QuicServer
impl !RefUnwindSafe for QuicServer
impl Send for QuicServer
impl Sync for QuicServer
impl Unpin for QuicServer
impl UnsafeUnpin for QuicServer
impl !UnwindSafe for QuicServer
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