Trait ContainerManager

Source
pub trait ContainerManager {
    // Required methods
    fn enumerate_container_name(&self) -> Result<Vec<String>>;
    fn create_container(&self, name: &str) -> Result<Box<dyn SkfContainer>>;
    fn open_container(&self, name: &str) -> Result<Box<dyn SkfContainer>>;
    fn delete_container(&self, name: &str) -> Result<()>;
}

Required Methods§

Source

fn enumerate_container_name(&self) -> Result<Vec<String>>

Enumerate all apps in the app,return container names

Source

fn create_container(&self, name: &str) -> Result<Box<dyn SkfContainer>>

Create container in the app

[name] - The container name

Source

fn open_container(&self, name: &str) -> Result<Box<dyn SkfContainer>>

Open container by name

[name] - The container name

Source

fn delete_container(&self, name: &str) -> Result<()>

Delete container by name

[name] - The container name

Implementors§