Struct quicr::EndpointBuilder [−][src]
pub struct EndpointBuilder<'a> { /* fields omitted */ }
A helper for constructing an Endpoint
.
Methods
impl<'a> EndpointBuilder<'a>
[src]
impl<'a> EndpointBuilder<'a>
ⓘImportant traits for &'a mut Rpub fn reactor(&mut self, handle: &'a Handle) -> &mut Self
[src]
ⓘImportant traits for &'a mut R
pub fn reactor(&mut self, handle: &'a Handle) -> &mut Self
ⓘImportant traits for &'a mut Rpub fn logger(&mut self, logger: Logger) -> &mut Self
[src]
ⓘImportant traits for &'a mut R
pub fn logger(&mut self, logger: Logger) -> &mut Self
ⓘImportant traits for &'a mut Rpub fn config(&mut self, config: Config) -> &mut Self
[src]
ⓘImportant traits for &'a mut R
pub fn config(&mut self, config: Config) -> &mut Self
ⓘImportant traits for &'a mut Rpub fn listen(&mut self) -> &mut Self
[src]
ⓘImportant traits for &'a mut R
pub fn listen(&mut self) -> &mut Self
Prefer listen_with_keys
.
ⓘImportant traits for &'a mut Rpub fn listen_with_keys(&mut self, keys: ListenKeys) -> &mut Self
[src]
ⓘImportant traits for &'a mut R
pub fn listen_with_keys(&mut self, keys: ListenKeys) -> &mut Self
Use with persistent keys
instead of listen
to allow graceful reset of clients when the server restarts.
pub fn private_key_pem(&mut self, key: &[u8]) -> Result<&mut Self, Error>
[src]
pub fn private_key_pem(&mut self, key: &[u8]) -> Result<&mut Self, Error>
pub fn certificate_pem(&mut self, cert: &[u8]) -> Result<&mut Self, Error>
[src]
pub fn certificate_pem(&mut self, cert: &[u8]) -> Result<&mut Self, Error>
pub fn private_key_der(&mut self, key: &[u8]) -> Result<&mut Self, Error>
[src]
pub fn private_key_der(&mut self, key: &[u8]) -> Result<&mut Self, Error>
pub fn certificate_der(&mut self, cert: &[u8]) -> Result<&mut Self, Error>
[src]
pub fn certificate_der(&mut self, cert: &[u8]) -> Result<&mut Self, Error>
pub fn generate_insecure_certificate(&mut self) -> Result<&mut Self, Error>
[src]
pub fn generate_insecure_certificate(&mut self) -> Result<&mut Self, Error>
Generate a key pair and self-signed TLS certificate.
Peers will be unable to verify this endpoint's identity. Useful when want to host a server with a minimum of set-up and don't need to prevent man-in-the-middle attacks.
pub fn from_socket(
self,
socket: UdpSocket
) -> Result<(Endpoint, Driver, Incoming), Error>
[src]
pub fn from_socket(
self,
socket: UdpSocket
) -> Result<(Endpoint, Driver, Incoming), Error>
pub fn bind<T: ToSocketAddrs>(
self,
addr: T
) -> Result<(Endpoint, Driver, Incoming), Error>
[src]
pub fn bind<T: ToSocketAddrs>(
self,
addr: T
) -> Result<(Endpoint, Driver, Incoming), Error>
Trait Implementations
impl<'a> Default for EndpointBuilder<'a>
[src]
impl<'a> Default for EndpointBuilder<'a>
Auto Trait Implementations
impl<'a> Send for EndpointBuilder<'a>
impl<'a> Send for EndpointBuilder<'a>
impl<'a> Sync for EndpointBuilder<'a>
impl<'a> Sync for EndpointBuilder<'a>