AppListObj

Trait AppListObj 

Source
pub trait AppListObj {
    // Required methods
    fn create(owner: ObjectId, id: &str, category: &str) -> Self;
    fn put(&mut self, app: AppStatus);
    fn remove(&mut self, id: &DecAppId);
    fn clear(&mut self);
    fn app_list(&self) -> &HashMap<DecAppId, AppStatus>;
    fn id(&self) -> &str;
    fn category(&self) -> &str;
    fn exists(&self, id: &DecAppId) -> bool;
    fn generate_id(owner: ObjectId, id: &str, category: &str) -> ObjectId;
}

Required Methods§

Source

fn create(owner: ObjectId, id: &str, category: &str) -> Self

Source

fn put(&mut self, app: AppStatus)

Source

fn remove(&mut self, id: &DecAppId)

Source

fn clear(&mut self)

Source

fn app_list(&self) -> &HashMap<DecAppId, AppStatus>

Source

fn id(&self) -> &str

Source

fn category(&self) -> &str

Source

fn exists(&self, id: &DecAppId) -> bool

Source

fn generate_id(owner: ObjectId, id: &str, category: &str) -> ObjectId

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§