Struct lunatic_networking_api::TlsConnection
source · pub struct TlsConnection {
pub reader: Mutex<ReadHalf<TlsStream<TcpStream>>>,
pub writer: Mutex<WriteHalf<TlsStream<TcpStream>>>,
pub closing: bool,
pub clean_closure: bool,
pub read_timeout: Mutex<Option<Duration>>,
pub write_timeout: Mutex<Option<Duration>>,
pub peek_timeout: Mutex<Option<Duration>>,
}Expand description
This encapsulates the TCP-level connection, some connection state, and the underlying TLS-level session.
Fields
reader: Mutex<ReadHalf<TlsStream<TcpStream>>>writer: Mutex<WriteHalf<TlsStream<TcpStream>>>closing: boolclean_closure: boolread_timeout: Mutex<Option<Duration>>write_timeout: Mutex<Option<Duration>>peek_timeout: Mutex<Option<Duration>>Implementations
sourceimpl TlsConnection
impl TlsConnection
pub fn new(sock: TlsStream<TcpStream>) -> TlsConnection
Auto Trait Implementations
impl !RefUnwindSafe for TlsConnection
impl Send for TlsConnection
impl Sync for TlsConnection
impl Unpin for TlsConnection
impl !UnwindSafe for TlsConnection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more