[][src]Struct quinn::EndpointBuilder

pub struct EndpointBuilder<'a> { /* fields omitted */ }

A helper for constructing an Endpoint.

Methods

impl<'a> EndpointBuilder<'a>
[src]

pub fn new(config: Config) -> Self
[src]

Start a builder with a specific initial low-level configuration.

pub fn bind<T: ToSocketAddrs>(
    self,
    addr: T
) -> Result<(Endpoint, Driver, Incoming), EndpointError>
[src]

Build an endpoint bound to addr.

pub fn from_socket(
    self,
    socket: UdpSocket
) -> Result<(Endpoint, Driver, Incoming), EndpointError>
[src]

Build an endpoint around a pre-configured socket.

pub fn listen(&mut self, config: ServerConfig) -> &mut Self
[src]

Accept incoming connections.

pub fn reactor(&mut self, handle: &'a Handle) -> &mut Self
[src]

pub fn logger(&mut self, logger: Logger) -> &mut Self
[src]

pub fn default_client_config(&mut self, config: ClientConfig) -> &mut Self
[src]

Set the default configuration used for outgoing connections.

The default can be overriden by using Endpoint::connect_with.

Trait Implementations

impl<'a> Default for EndpointBuilder<'a>
[src]

Auto Trait Implementations

impl<'a> Send for EndpointBuilder<'a>

impl<'a> Sync for EndpointBuilder<'a>

Blanket Implementations

impl<T> From for T
[src]

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

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