pub struct Endpoint { /* private fields */ }Expand description
A QUIC endpoint.
Implementations§
Source§impl Endpoint
impl Endpoint
Sourcepub fn new(config: EndpointConfig, server_config: Option<ServerConfig>) -> Self
pub fn new(config: EndpointConfig, server_config: Option<ServerConfig>) -> Self
Creates a new endpoint.
Sourcepub async fn bind(_addr: SocketAddr) -> Result<Self>
pub async fn bind(_addr: SocketAddr) -> Result<Self>
Binds the endpoint to a local socket address.
Sourcepub async fn connect(
&self,
_addr: SocketAddr,
_server_name: &str,
) -> Result<Connecting>
pub async fn connect( &self, _addr: SocketAddr, _server_name: &str, ) -> Result<Connecting>
Connects to a remote endpoint.
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnsafeUnpin for Endpoint
impl UnwindSafe for Endpoint
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