pub trait UniqueID { // Required method fn id(&self) -> i32; }
Define how a given session/connection identifies itself.
The ID returned should be unique among all existing connections of the same type. But ID can be recycled after a connection is shutdown.