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