pub struct SslFilter { /* private fields */ }Expand description
Encrypts and decrypts either side of an OpenSSL TLS connection.
Created by the handshake functions or services in this module. The filter
preserves plaintext that OpenSSL cannot yet accept, including during
negotiation, and exchanges close_notify during shutdown.
Trait Implementations§
Source§impl FilterLayer for SslFilter
impl FilterLayer for SslFilter
Source§fn query(&self, id: TypeId) -> Option<Box<dyn Any>>
fn query(&self, id: TypeId) -> Option<Box<dyn Any>>
Produces owned metadata, normalizing the DER chain to include the peer leaf.
Returns None while the stream is busy, for example when a verify or
ALPN callback queries its own connection during the handshake.
Source§fn shutdown(&self, buf: &FilterBuf<'_>) -> Result<Poll<()>, Error>
fn shutdown(&self, buf: &FilterBuf<'_>) -> Result<Poll<()>, Error>
Sends close_notify and waits for the peer’s alert or transport EOF.
Auto Trait Implementations§
impl !Freeze for SslFilter
impl !RefUnwindSafe for SslFilter
impl !Sync for SslFilter
impl Send for SslFilter
impl Unpin for SslFilter
impl UnsafeUnpin for SslFilter
impl UnwindSafe for SslFilter
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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