pub struct TlsServerParameterProvider { /* private fields */ }Implementations§
Source§impl TlsServerParameterProvider
impl TlsServerParameterProvider
pub fn new(params: TlsServerParameters) -> Self
pub fn with_lookup( lookup: impl Fn(Option<ServerName<'_>>) -> Arc<TlsServerParameters> + Send + Sync + 'static, ) -> Self
pub fn lookup(&self, name: Option<ServerName<'_>>) -> Arc<TlsServerParameters>
Trait Implementations§
Source§impl Clone for TlsServerParameterProvider
impl Clone for TlsServerParameterProvider
Source§fn clone(&self) -> TlsServerParameterProvider
fn clone(&self) -> TlsServerParameterProvider
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TlsServerParameterProvider
impl !RefUnwindSafe for TlsServerParameterProvider
impl Send for TlsServerParameterProvider
impl Sync for TlsServerParameterProvider
impl Unpin for TlsServerParameterProvider
impl !UnwindSafe for TlsServerParameterProvider
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