pub struct AllowAllConnections;Expand description
A convenience allower which accepts all public keys.
This is not recommended for use in real applications, but may be useful for testing.
Trait Implementations§
Source§impl AllowConnection for AllowAllConnections
impl AllowConnection for AllowAllConnections
Source§fn allow_public_key(
&self,
_key: SubjectPublicKeyInfoDer<'_>,
_now: UnixTime,
) -> Result<(), CertificateError>
fn allow_public_key( &self, _key: SubjectPublicKeyInfoDer<'_>, _now: UnixTime, ) -> Result<(), CertificateError>
Given a public key, determine whether a connection (peer) should be allowed. Read more
Source§fn require_client_auth(&self) -> bool
fn require_client_auth(&self) -> bool
Whether incoming peers need to provide a certificate. Read more
Source§impl Clone for AllowAllConnections
impl Clone for AllowAllConnections
Source§fn clone(&self) -> AllowAllConnections
fn clone(&self) -> AllowAllConnections
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 moreSource§impl Debug for AllowAllConnections
impl Debug for AllowAllConnections
impl Copy for AllowAllConnections
Auto Trait Implementations§
impl Freeze for AllowAllConnections
impl RefUnwindSafe for AllowAllConnections
impl Send for AllowAllConnections
impl Sync for AllowAllConnections
impl Unpin for AllowAllConnections
impl UnwindSafe for AllowAllConnections
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