Struct openssl::ssl::SslStreamBuilder
[−]
[src]
pub struct SslStreamBuilder<S> { /* fields omitted */ }
A partially constructed SslStream
, useful for unusual handshakes.
Methods
impl<S> SslStreamBuilder<S> where
S: Read + Write,
[src]
S: Read + Write,
pub fn new(ssl: Ssl, stream: S) -> Self
[src]
Begin creating an SslStream
atop stream
pub fn connect(self) -> Result<SslStream<S>, HandshakeError<S>>
[src]
See Ssl::connect
pub fn accept(self) -> Result<SslStream<S>, HandshakeError<S>>
[src]
See Ssl::accept
impl<S> SslStreamBuilder<S>
[src]
ⓘImportant traits for &'a mut Wpub fn get_ref(&self) -> &S
[src]
ⓘImportant traits for &'a mut W
Returns a shared reference to the underlying stream.
ⓘImportant traits for &'a mut Wpub fn get_mut(&mut self) -> &mut S
[src]
ⓘImportant traits for &'a mut W
Returns a mutable reference to the underlying stream.
Warning
It is inadvisable to read from or write to the underlying stream as it will most likely corrupt the SSL session.
pub fn ssl(&self) -> &SslRef
[src]
Returns a shared reference to the Ssl
object associated with this builder.
Trait Implementations
Auto Trait Implementations
impl<S> Send for SslStreamBuilder<S> where
S: Send,
S: Send,
impl<S> Sync for SslStreamBuilder<S> where
S: Sync,
S: Sync,