pub struct ServerTlsPolicy;Expand description
Namespace for explicit server-side TLS policy values.
Implementations§
Source§impl ServerTlsPolicy
impl ServerTlsPolicy
Sourcepub const Disabled: DisabledServerTls = DisabledServerTls
pub const Disabled: DisabledServerTls = DisabledServerTls
Deliberately serve plaintext and decline encryption negotiation.
Sourcepub const fn Optional<Provider>(
provider: Provider,
) -> OptionalServerTls<Provider>
pub const fn Optional<Provider>( provider: Provider, ) -> OptionalServerTls<Provider>
Accepts plaintext or terminates TLS using identities from provider.
Sourcepub const fn Required<Provider>(
provider: Provider,
) -> RequiredServerTls<Provider>
pub const fn Required<Provider>( provider: Provider, ) -> RequiredServerTls<Provider>
Requires TLS using identities from provider.
Trait Implementations§
Source§impl Clone for ServerTlsPolicy
impl Clone for ServerTlsPolicy
Source§fn clone(&self) -> ServerTlsPolicy
fn clone(&self) -> ServerTlsPolicy
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 moreimpl Copy for ServerTlsPolicy
Source§impl Debug for ServerTlsPolicy
impl Debug for ServerTlsPolicy
impl Eq for ServerTlsPolicy
Source§impl PartialEq for ServerTlsPolicy
impl PartialEq for ServerTlsPolicy
impl StructuralPartialEq for ServerTlsPolicy
Auto Trait Implementations§
impl Freeze for ServerTlsPolicy
impl RefUnwindSafe for ServerTlsPolicy
impl Send for ServerTlsPolicy
impl Sync for ServerTlsPolicy
impl Unpin for ServerTlsPolicy
impl UnsafeUnpin for ServerTlsPolicy
impl UnwindSafe for ServerTlsPolicy
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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