pub struct ClientBuilder { /* private fields */ }
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
pub fn new() -> Self
Sourcepub fn with_unreliable(self, val: bool) -> Self
pub fn with_unreliable(self, val: bool) -> Self
For compatibility with WASM. Panics if val
is false, but does nothing else.
Sourcepub fn with_congestion_control(self, cc: CongestionControl) -> Self
pub fn with_congestion_control(self, cc: CongestionControl) -> Self
Allow a lower latency congestion controller.
Sourcepub fn with_server_certificate_hashes(
self,
hashes: Vec<Vec<u8>>,
) -> Result<Client, Error>
pub fn with_server_certificate_hashes( self, hashes: Vec<Vec<u8>>, ) -> Result<Client, Error>
Accept the server’s certificate hashes (sha256) instead of using a root CA.
Sourcepub fn with_system_roots(self) -> Result<Client, Error>
pub fn with_system_roots(self) -> Result<Client, Error>
Accept certificates using root CAs.
Trait Implementations§
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 !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