pub struct Client { /* private fields */ }
Implementations§
Source§impl Client
impl Client
Sourcepub fn new(config: ClientConfig) -> Self
👎Deprecated: client and server builders should be used instead
pub fn new(config: ClientConfig) -> Self
Build a Client using a custom rustls::ClientConfig
In addition to necessary configuration, the applications is responsible for correctly setting:
- QUIC compliant application_protocol
- QUIC compliant TLS protocol version
- QUIC compliant ciphersuites
pub fn builder() -> Builder
Trait Implementations§
Source§impl Endpoint for Client
impl Endpoint for Client
type Session = Session
fn new_server_session<Params: EncoderValue>( &mut self, _transport_parameters: &Params, ) -> Self::Session
fn new_client_session<Params: EncoderValue>( &mut self, transport_parameters: &Params, server_name: ServerName, ) -> Self::Session
Source§fn max_tag_length(&self) -> usize
fn max_tag_length(&self) -> usize
The maximum length of a tag for any algorithm that may be negotiated
Source§impl From<Arc<ClientConfig>> for Client
impl From<Arc<ClientConfig>> for Client
Source§fn from(config: Arc<ClientConfig>) -> Self
fn from(config: Arc<ClientConfig>) -> Self
Converts to this type from the input type.
Source§impl From<ClientConfig> for Client
impl From<ClientConfig> for Client
Source§fn from(config: ClientConfig) -> Self
fn from(config: ClientConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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