pub struct NoTls;Expand description
The builder’s default acceptor: no listener may enable TLS with it.
use net_io::{ConnectionInfo, NoTls, TlsAcceptor};
let info = ConnectionInfo::for_testing("127.0.0.1:1".parse().unwrap());
assert!(NoTls.session(&info).is_err());Trait Implementations§
impl Copy for NoTls
Source§impl TlsAcceptor for NoTls
impl TlsAcceptor for NoTls
Source§type Session = NoTlsSession
type Session = NoTlsSession
The per-connection session type.
Source§fn session(&self, _info: &ConnectionInfo) -> Result<NoTlsSession, TlsError>
fn session(&self, _info: &ConnectionInfo) -> Result<NoTlsSession, TlsError>
Called once per admitted connection, after PROXY and readmission, before any TLS byte is read. Read more
Auto Trait Implementations§
impl Freeze for NoTls
impl RefUnwindSafe for NoTls
impl Send for NoTls
impl Sync for NoTls
impl Unpin for NoTls
impl UnsafeUnpin for NoTls
impl UnwindSafe for NoTls
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