Session

Trait Session 

Source
pub trait Session {
    // Required methods
    fn save(&self, name: &str) -> Result<()>;
    fn load(&self, name: &str) -> Result<()>;
    fn clear(&self) -> Result<()>;
    fn list(&self) -> impl Iterator<Item = String>;
    fn delete(&self, name: &str);
}

Required Methods§

Source

fn save(&self, name: &str) -> Result<()>

Source

fn load(&self, name: &str) -> Result<()>

Source

fn clear(&self) -> Result<()>

Source

fn list(&self) -> impl Iterator<Item = String>

Source

fn delete(&self, name: &str)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§