pub struct ClientBuilder { /* private fields */ }Expand description
Builder wrapper for WebTransportOptions.
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
pub fn new() -> Self
Sourcepub fn with_pooling(self, val: bool) -> Self
pub fn with_pooling(self, val: bool) -> Self
Control whether the client/server is allowed to pool connections. In practice, keep this disabled unless you have a specific need.
Sourcepub fn with_unreliable(self, val: bool) -> Self
pub fn with_unreliable(self, val: bool) -> Self
true if QUIC is required, false if TCP is an acceptable fallback.
Sourcepub fn with_congestion_control(self, control: CongestionControl) -> Self
pub fn with_congestion_control(self, control: CongestionControl) -> Self
Hint at the desired congestion control algorithm.
Sourcepub fn with_server_certificate_hashes(self, hashes: Vec<Vec<u8>>) -> Client
pub fn with_server_certificate_hashes(self, hashes: Vec<Vec<u8>>) -> Client
Supply SHA-256 hashes for accepted certificates instead of using a root CA.
pub fn with_system_roots(self) -> Client
Trait Implementations§
Source§impl Debug for ClientBuilder
impl Debug for ClientBuilder
Source§impl Default for ClientBuilder
impl Default for ClientBuilder
Source§fn default() -> ClientBuilder
fn default() -> ClientBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClientBuilder
impl RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnsafeUnpin for ClientBuilder
impl UnwindSafe for ClientBuilder
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