Trait pingora_core::protocols::UniqueID

source ·
pub trait UniqueID {
    // Required method
    fn id(&self) -> i32;
}
Expand description

Define how a given session/connection identifies itself.

Required Methods§

source

fn id(&self) -> i32

The ID returned should be unique among all existing connections of the same type. But ID can be recycled after a connection is shutdown.

Implementations on Foreign Types§

source§

impl UniqueID for Mock

source§

fn id(&self) -> i32

source§

impl UniqueID for DuplexStream

source§

fn id(&self) -> i32

source§

impl<T> UniqueID for Cursor<T>

source§

fn id(&self) -> i32

Implementors§