pub struct QuicStream { /* private fields */ }Implementations§
Source§impl QuicStream
impl QuicStream
pub async fn new_client( remote_addr: SocketAddr, socket: UdpSocket, cert: Vec<u8>, ) -> Result<Self, NetworkError>
pub async fn new_server( socket: UdpSocket, cert: Vec<u8>, key: Vec<u8>, ) -> Result<Self, NetworkError>
pub async fn open_bi(&self) -> Result<QuicBiSocket, NetworkError>
pub async fn accept_bi(&self) -> Result<QuicBiSocket, NetworkError>
pub fn remote_addr(&self) -> SocketAddr
Auto Trait Implementations§
impl Freeze for QuicStream
impl RefUnwindSafe for QuicStream
impl Send for QuicStream
impl Sync for QuicStream
impl Unpin for QuicStream
impl UnwindSafe for QuicStream
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