pub struct TlsConn<C> {
read_stream: Mutex<ReadStream<ReadHalf<TlsStream<TcpStream>>, C>>,
write_stream: Mutex<WriteStream<WriteHalf<TlsStream<TcpStream>>, C>>,
peer_endpoint: Endpoint,
local_endpoint: Endpoint,
}
Expand description
TLS network connection implementation of the Connection
trait.
Fields§
§read_stream: Mutex<ReadStream<ReadHalf<TlsStream<TcpStream>>, C>>
§write_stream: Mutex<WriteStream<WriteHalf<TlsStream<TcpStream>>, C>>
§peer_endpoint: Endpoint
§local_endpoint: Endpoint
Implementations§
Trait Implementations§
Source§impl<C, E> Connection for TlsConn<C>
impl<C, E> Connection for TlsConn<C>
type Message = <C as Codec>::Message
type Error = E
Source§fn peer_endpoint(&self) -> Result<Endpoint, Self::Error>
fn peer_endpoint(&self) -> Result<Endpoint, Self::Error>
Returns the remote peer endpoint of this connection
Source§fn local_endpoint(&self) -> Result<Endpoint, Self::Error>
fn local_endpoint(&self) -> Result<Endpoint, Self::Error>
Returns the local socket endpoint of this connection
Auto Trait Implementations§
impl<C> !Freeze for TlsConn<C>
impl<C> !RefUnwindSafe for TlsConn<C>
impl<C> Send for TlsConn<C>where
C: Send,
impl<C> Sync for TlsConn<C>where
C: Send,
impl<C> Unpin for TlsConn<C>where
C: Unpin,
impl<C> UnwindSafe for TlsConn<C>where
C: UnwindSafe,
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