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)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl GetSocketDigest for DuplexStream
impl GetSocketDigest for DuplexStream
fn get_socket_digest(&self) -> Option<Arc<SocketDigest>>
Source§impl GetSocketDigest for Mock
impl GetSocketDigest for Mock
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.