pub struct TlsBuilder { /* private fields */ }Expand description
TLS构造器
Implementations§
Source§impl TlsBuilder
impl TlsBuilder
pub fn new(raw: RawBuilder) -> Self
pub fn certs(self, cert: impl Into<String>) -> Self
pub fn private_key(self, key: impl Into<String>) -> Self
pub fn extend_alpn_protocols<I: IntoIterator<Item = P>, P: Into<String>>( self, protocols: I, ) -> Self
pub fn alpn_protocols<I: IntoIterator<Item = P>, P: Into<String>>( self, protocols: I, ) -> Self
pub fn workers(self, workers: usize) -> Self
pub fn max_concurrent_connections(self, max: usize) -> Self
pub fn backlog(self, backlog: u32) -> Self
pub fn make_service<M>(self, make_service: M) -> Server<M>
Trait Implementations§
Source§impl Clone for TlsBuilder
impl Clone for TlsBuilder
Source§fn clone(&self) -> TlsBuilder
fn clone(&self) -> TlsBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TlsBuilder
impl Debug for TlsBuilder
Source§impl Default for TlsBuilder
impl Default for TlsBuilder
Source§fn default() -> TlsBuilder
fn default() -> TlsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TlsBuilder
impl RefUnwindSafe for TlsBuilder
impl Send for TlsBuilder
impl Sync for TlsBuilder
impl Unpin for TlsBuilder
impl UnsafeUnpin for TlsBuilder
impl UnwindSafe for TlsBuilder
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