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§
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
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.