pub struct TlsTransport { /* private fields */ }Expand description
TLS transport using rustls.
This wraps a rustls ClientConnection and provides a completion-based
interface.
Implementations§
Trait Implementations§
Source§impl Transport for TlsTransport
impl Transport for TlsTransport
Source§fn state(&self) -> TransportState
fn state(&self) -> TransportState
Get the current transport state.
Source§fn on_recv(&mut self, data: &[u8]) -> Result<()>
fn on_recv(&mut self, data: &[u8]) -> Result<()>
Process raw data received from the socket. Read more
Source§fn advance_send(&mut self, n: usize)
fn advance_send(&mut self, n: usize)
Mark bytes as sent on the socket.
Source§fn has_pending_send(&self) -> bool
fn has_pending_send(&self) -> bool
Check if there’s pending data to send.
Auto Trait Implementations§
impl Freeze for TlsTransport
impl !RefUnwindSafe for TlsTransport
impl Send for TlsTransport
impl Sync for TlsTransport
impl Unpin for TlsTransport
impl UnsafeUnpin for TlsTransport
impl !UnwindSafe for TlsTransport
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