pub trait GetSocketDigest {
// Required method
fn get_socket_digest(&self) -> Option<Arc<SocketDigest>>;
// Provided method
fn set_socket_digest(&mut self, _socket_digest: SocketDigest) { ... }
}Expand description
The interface to set or return socket information
Required Methods§
fn get_socket_digest(&self) -> Option<Arc<SocketDigest>>
Provided Methods§
fn set_socket_digest(&mut self, _socket_digest: SocketDigest)
Implementations on Foreign Types§
Source§impl GetSocketDigest for Mock
impl GetSocketDigest for Mock
fn get_socket_digest(&self) -> Option<Arc<SocketDigest>>
Source§impl GetSocketDigest for DuplexStream
impl GetSocketDigest for DuplexStream
fn get_socket_digest(&self) -> Option<Arc<SocketDigest>>
Source§impl GetSocketDigest for UnixStream
Available on Unix only.
impl GetSocketDigest for UnixStream
Available on Unix only.
fn get_socket_digest(&self) -> Option<Arc<SocketDigest>>
Source§impl<T> GetSocketDigest for Cursor<T>
impl<T> GetSocketDigest for Cursor<T>
fn get_socket_digest(&self) -> Option<Arc<SocketDigest>>
Implementors§
impl GetSocketDigest for Stream
impl<S> GetSocketDigest for SslStream<S>
Available on non-crate feature
any_tls only.