pub trait AppLocalStatusObj {
Show 20 methods
// Required methods
fn create(owner: ObjectId, id: DecAppId) -> Self;
fn app_id(&self) -> &DecAppId;
fn status(&self) -> AppLocalStatusCode;
fn web_dir(&self) -> Option<&ObjectId>;
fn version(&self) -> Option<&str>;
fn permissions(&self) -> &HashMap<String, PermissionNode>;
fn quota(&self) -> &AppQuota;
fn permission_unhandled(&self) -> Option<HashMap<String, String>>;
fn last_status_update_time(&self) -> u64;
fn sub_error(&self) -> SubErrorCode;
fn auto_update(&self) -> bool;
fn set_status(&mut self, status: AppLocalStatusCode);
fn set_web_dir(&mut self, web_dir: Option<ObjectId>);
fn set_version(&mut self, version: &str);
fn add_permissions(&mut self, permissions: &HashMap<String, String>) -> bool;
fn set_permissions(
&mut self,
permissions: &HashMap<String, PermissionState>,
) -> bool;
fn set_quota(&mut self, quota: &AppQuota) -> bool;
fn set_sub_error(&mut self, code: SubErrorCode);
fn set_auto_update(&mut self, auto_update: bool) -> bool;
fn output(&self) -> String;
}
Required Methods§
fn create(owner: ObjectId, id: DecAppId) -> Self
fn app_id(&self) -> &DecAppId
fn status(&self) -> AppLocalStatusCode
fn web_dir(&self) -> Option<&ObjectId>
fn version(&self) -> Option<&str>
fn permissions(&self) -> &HashMap<String, PermissionNode>
fn quota(&self) -> &AppQuota
fn permission_unhandled(&self) -> Option<HashMap<String, String>>
fn last_status_update_time(&self) -> u64
fn sub_error(&self) -> SubErrorCode
fn auto_update(&self) -> bool
fn set_status(&mut self, status: AppLocalStatusCode)
fn set_web_dir(&mut self, web_dir: Option<ObjectId>)
fn set_version(&mut self, version: &str)
fn add_permissions(&mut self, permissions: &HashMap<String, String>) -> bool
fn set_permissions( &mut self, permissions: &HashMap<String, PermissionState>, ) -> bool
fn set_quota(&mut self, quota: &AppQuota) -> bool
fn set_sub_error(&mut self, code: SubErrorCode)
fn set_auto_update(&mut self, auto_update: bool) -> bool
fn output(&self) -> String
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.