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<DnsName<'_>>, &dyn StreamMetadata) -> Arc<TlsServerParameters> + Send + Sync + 'static, ) -> Self
pub fn lookup( &self, name: Option<DnsName<'_>>, stream: &dyn StreamMetadata, ) -> Arc<TlsServerParameters>
Trait Implementations§
Source§impl Clone for TlsServerParameterProvider
impl Clone for TlsServerParameterProvider
Source§fn clone(&self) -> TlsServerParameterProvider
fn clone(&self) -> TlsServerParameterProvider
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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