Struct actix_tls::accept::openssl::TlsStream [−][src]
pub struct TlsStream<IO>(_);
accept
and openssl
only.Expand description
Wraps an openssl
based async TLS stream in order to implement [ActixStream
].
Methods from Deref<Target = SslStream<IO>>
This is supported on crate feature connect
only.
connect
only.Like SslStream::connect
.
This is supported on crate feature connect
only.
connect
only.A convenience method wrapping poll_connect
.
This is supported on crate feature connect
only.
connect
only.Like SslStream::accept
.
This is supported on crate feature connect
only.
connect
only.A convenience method wrapping poll_accept
.
pub fn poll_do_handshake(
self: Pin<&mut SslStream<S>>,
cx: &mut Context<'_>
) -> Poll<Result<(), Error>>
This is supported on crate feature connect
only.
pub fn poll_do_handshake(
self: Pin<&mut SslStream<S>>,
cx: &mut Context<'_>
) -> Poll<Result<(), Error>>
connect
only.Like SslStream::do_handshake
.
This is supported on crate feature connect
only.
connect
only.A convenience method wrapping poll_do_handshake
.
pub fn poll_read_early_data(
self: Pin<&mut SslStream<S>>,
cx: &mut Context<'_>,
buf: &mut [u8]
) -> Poll<Result<usize, Error>>
This is supported on crate feature connect
only.
pub fn poll_read_early_data(
self: Pin<&mut SslStream<S>>,
cx: &mut Context<'_>,
buf: &mut [u8]
) -> Poll<Result<usize, Error>>
connect
only.pub async fn read_early_data(
self: Pin<&'_ mut SslStream<S>>,
buf: &'_ mut [u8]
) -> Result<usize, Error>
This is supported on crate feature connect
only.
pub async fn read_early_data(
self: Pin<&'_ mut SslStream<S>>,
buf: &'_ mut [u8]
) -> Result<usize, Error>
connect
only.A convenience method wrapping poll_read_early_data
.
This is supported on crate feature connect
only.
connect
only.Returns a shared reference to the Ssl
object associated with this stream.
This is supported on crate feature connect
only.
connect
only.Returns a shared reference to the underlying stream.
This is supported on crate feature connect
only.
connect
only.Returns a mutable reference to the underlying stream.
Trait Implementations
Attempt to write bytes from buf
into the object. Read more
Attempts to flush the object, ensuring that any buffered data reach their destination. Read more
Initiates or attempts to shut down this writer, returning success when the I/O connection has completely shut down. Read more
Like poll_write
, except that it writes from a slice of buffers. Read more
Determines if this writer has an efficient poll_write_vectored
implementation. Read more