1 2 3 4 5
trait SessionRegistry<S> { fn lookup(&self, id: &str) -> Option<&S>; fn insert(&mut self, id: String, session: S); fn remove(&mut self, id: &str) -> Option<S>; }