Struct xstack_tls::TlsStream
source · pub struct TlsStream { /* private fields */ }Expand description
A stream over tls/yamux.
Trait Implementations§
source§impl DriverStream for TlsStream
impl DriverStream for TlsStream
source§fn local_addr(&self) -> &Multiaddr
fn local_addr(&self) -> &Multiaddr
Returns the local address that this stream is bound to.
source§fn peer_addr(&self) -> &Multiaddr
fn peer_addr(&self) -> &Multiaddr
Returns the remote address that this stream is connected to.
source§fn poll_read(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &mut [u8],
) -> Poll<Result<usize>>
fn poll_read( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut [u8], ) -> Poll<Result<usize>>
Attempt to read data via this stream.
source§fn public_key(&self) -> &PublicKey
fn public_key(&self) -> &PublicKey
Return the remote peer’s public key.
source§fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8],
) -> Poll<Result<usize>>
fn poll_write( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize>>
Attempt to write data via this stream.
Auto Trait Implementations§
impl Freeze for TlsStream
impl !RefUnwindSafe for TlsStream
impl Send for TlsStream
impl Sync for TlsStream
impl Unpin for TlsStream
impl !UnwindSafe for TlsStream
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