pingora_core::protocols

Trait IO

Source
pub trait IO:
    AsyncRead
    + AsyncWrite
    + Shutdown
    + UniqueID
    + Ssl
    + GetTimingDigest
    + GetProxyDigest
    + GetSocketDigest
    + Peek
    + 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§