Trait SessionContainer

Source
pub trait SessionContainer {
    // Required methods
    fn find_session(&self, name: &str) -> Option<&Session>;
    fn insert_session(&mut self, name: String, repo: Session);
    fn list(&self) -> Vec<String>;
}

Required Methods§

Source

fn find_session(&self, name: &str) -> Option<&Session>

Source

fn insert_session(&mut self, name: String, repo: Session)

Source

fn list(&self) -> Vec<String>

Implementations on Foreign Types§

Source§

impl SessionContainer for HashMap<String, Session>

Source§

fn find_session(&self, name: &str) -> Option<&Session>

Source§

fn insert_session(&mut self, name: String, session: Session)

Source§

fn list(&self) -> Vec<String>

Implementors§