[−][src]Struct conec::CoordConfig
Coordinator configuration struct
See library documentation for usage example.
Implementations
impl CoordConfig
[src]
pub fn new(
cert_path: PathBuf,
key_path: PathBuf
) -> Result<Self, CoordConfigError>
[src]
cert_path: PathBuf,
key_path: PathBuf
) -> Result<Self, CoordConfigError>
Construct a new coordinator configuration
cert_path
is the path to a certificate in PEM or DER formatkey_path
is the path to the corresponding key in PEM or DER format
pub fn set_port(&mut self, port: u16) -> &mut Self
[src]
Set listen port number to port
pub fn set_ip(&mut self, ip: IpAddr) -> &mut Self
[src]
Set listen address to ip
By default, the listen address is set to 0.0.0.0:0
. To bind to a host-assigned
IPv6 port instead, one might call
ⓘThis example is not tested
coord_cfg.set_ip(IpAddr::V6(Ipv6Addr::UNSPECIFIED));
pub fn enable_keylog(&mut self) -> &mut Self
[src]
Enable logging key material to the file specified by the environment variable SSLKEYLOGFILE
.
pub fn enable_stateless_retry(&mut self) -> &mut Self
[src]
Enable QUIC stateless retry.
Per QUIC spec, stateless retry defends against client address spoofing. The downside is that this adds another round-trip to new connections.
Trait Implementations
impl Clone for CoordConfig
[src]
fn clone(&self) -> CoordConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CoordConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for CoordConfig
impl Send for CoordConfig
impl Sync for CoordConfig
impl Unpin for CoordConfig
impl UnwindSafe for CoordConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,