AppCmdObj

Trait AppCmdObj 

Source
pub trait AppCmdObj {
    // Required methods
    fn app_id(&self) -> &DecAppId;
    fn cmd(&self) -> &CmdCode;
    fn add(owner: ObjectId, id: DecAppId, app_owner: Option<ObjectId>) -> Self;
    fn remove(owner: ObjectId, id: DecAppId) -> Self;
    fn install(
        owner: ObjectId,
        id: DecAppId,
        version: &str,
        run_after_install: bool,
    ) -> Self;
    fn uninstall(owner: ObjectId, id: DecAppId) -> Self;
    fn start(owner: ObjectId, id: DecAppId) -> Self;
    fn stop(owner: ObjectId, id: DecAppId) -> Self;
    fn set_permission(
        owner: ObjectId,
        id: DecAppId,
        permission: ModifyAppPermission,
    ) -> Self;
    fn set_quota(owner: ObjectId, id: DecAppId, quota: AppQuota) -> Self;
    fn set_auto_update(owner: ObjectId, id: DecAppId, auto_update: bool) -> Self;
    fn output(&self) -> String;
}

Required Methods§

Source

fn app_id(&self) -> &DecAppId

Source

fn cmd(&self) -> &CmdCode

Source

fn add(owner: ObjectId, id: DecAppId, app_owner: Option<ObjectId>) -> Self

Source

fn remove(owner: ObjectId, id: DecAppId) -> Self

Source

fn install( owner: ObjectId, id: DecAppId, version: &str, run_after_install: bool, ) -> Self

Source

fn uninstall(owner: ObjectId, id: DecAppId) -> Self

Source

fn start(owner: ObjectId, id: DecAppId) -> Self

Source

fn stop(owner: ObjectId, id: DecAppId) -> Self

Source

fn set_permission( owner: ObjectId, id: DecAppId, permission: ModifyAppPermission, ) -> Self

Source

fn set_quota(owner: ObjectId, id: DecAppId, quota: AppQuota) -> Self

Source

fn set_auto_update(owner: ObjectId, id: DecAppId, auto_update: bool) -> Self

Source

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.

Implementors§