pub struct Server { /* private fields */ }
Implementations§
Source§impl Server
impl Server
Sourcepub fn new(config: ServerConfig) -> Self
👎Deprecated: client and server builders should be used instead
pub fn new(config: ServerConfig) -> Self
Build a Server using a custom rustls::ServerConfig
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 Server
impl Endpoint for Server
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, _sni: 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<ServerConfig>> for Server
impl From<Arc<ServerConfig>> for Server
Source§fn from(config: Arc<ServerConfig>) -> Self
fn from(config: Arc<ServerConfig>) -> Self
Converts to this type from the input type.
Source§impl From<ServerConfig> for Server
impl From<ServerConfig> for Server
Source§fn from(config: ServerConfig) -> Self
fn from(config: ServerConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Server
impl !RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl !UnwindSafe for Server
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