Struct SslStream
pub struct SslStream<S> { /* private fields */ }Available on crate feature
tls only.Implementations§
§impl<S> SslStream<S>
impl<S> SslStream<S>
pub fn new(ssl: Ssl, stream: S) -> Result<SslStream<S>, ErrorStack>
pub fn connect(&mut self) -> Result<(), Error>
pub fn accept(&mut self) -> Result<(), Error>
pub fn do_handshake(&mut self) -> Result<(), Error>
pub fn ssl_read(&mut self, buf: &mut [u8]) -> Result<usize, Error>
pub fn ssl_write(&mut self, buf: &[u8]) -> Result<usize, Error>
pub fn shutdown(&mut self) -> Result<ShutdownResult, Error>
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for SslStream<S>
impl<S> RefUnwindSafe for SslStream<S>where
S: RefUnwindSafe,
impl<S> !Send for SslStream<S>
impl<S> !Sync for SslStream<S>
impl<S> Unpin for SslStream<S>where
S: Unpin,
impl<S> UnsafeUnpin for SslStream<S>
impl<S> UnwindSafe for SslStream<S>where
S: 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more