DefaultAppListObj

Trait DefaultAppListObj 

Source
pub trait DefaultAppListObj {
    // Required methods
    fn create(owner: ObjectId, id: &str) -> Self;
    fn id(&self) -> &str;
    fn set(&mut self, group: &str, app: DefaultAppInfo);
    fn remove(
        &mut self,
        group: &str,
        dec_id: Option<DecAppId>,
    ) -> Option<DefaultAppInfo>;
    fn app_list(&self) -> &HashMap<String, DefaultAppInfo>;
    fn get(&self, group: &str) -> Option<&DefaultAppInfo>;
    fn generate_id(owner: ObjectId, id: &str) -> ObjectId;
}

Required Methods§

Source

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

Source

fn id(&self) -> &str

Source

fn set(&mut self, group: &str, app: DefaultAppInfo)

Source

fn remove( &mut self, group: &str, dec_id: Option<DecAppId>, ) -> Option<DefaultAppInfo>

Source

fn app_list(&self) -> &HashMap<String, DefaultAppInfo>

Source

fn get(&self, group: &str) -> Option<&DefaultAppInfo>

Source

fn generate_id(owner: ObjectId, id: &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§