Trait pingora_core::protocols::IO

source ·
pub trait IO: AsyncRead + AsyncWrite + Shutdown + UniqueID + Ssl + GetTimingDigest + GetProxyDigest + GetSocketDigest + Unpin + Debug + Send + Sync {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn into_any(self: Box<Self>) -> Box<dyn Any>;
}
Expand description

The abstraction of transport layer IO

Required Methods§

source

fn as_any(&self) -> &dyn Any

helper to cast as the reference of the concrete type

source

fn into_any(self: Box<Self>) -> Box<dyn Any>

helper to cast back of the concrete type

Implementors§