[][src]Struct quinn::Endpoint

pub struct Endpoint { /* fields omitted */ }

A QUIC endpoint.

An endpoint corresponds to a single UDP socket, may host many connections, and may act as both client and server for different connections.

May be cloned to obtain another handle to the same endpoint.

Methods

impl Endpoint
[src]

pub fn new<'a>() -> EndpointBuilder<'a>
[src]

Begin constructing an Endpoint

pub fn connect(
    &self,
    addr: &SocketAddr,
    server_name: &str
) -> Result<impl Future<Item = NewClientConnection, Error = ConnectionError>, ConnectError>
[src]

Connect to a remote endpoint.

May fail immediately due to configuration errors, or in the future if the connection could not be established.

pub fn connect_with(
    &self,
    config: &ClientConfig,
    addr: &SocketAddr,
    server_name: &str
) -> Result<impl Future<Item = NewClientConnection, Error = ConnectionError>, ConnectError>
[src]

Connect to a remote endpoint using a custom configuration.

May fail immediately due to configuration errors, or in the future if the connection could not be established.

Trait Implementations

impl Clone for Endpoint
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for Endpoint

impl !Sync for Endpoint

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T