#[cfg(feature = "native-tls")]
pub mod native_tls;
#[cfg(feature = "rustls")]
pub mod rustls;
#[derive(Debug)]
pub struct TlsListener<T, A> {
pub(crate) inner: T,
pub(crate) acceptor: A,
}
impl<T, A> TlsListener<T, A> {
pub const fn new(t: T, a: A) -> Self {
Self {
inner: t,
acceptor: a,
}
}
pub const fn get_ref(&self) -> &T {
&self.inner
}
pub const fn get_acceptor(&self) -> &A {
&self.acceptor
}
}