ResourceManager

Trait ResourceManager 

Source
pub trait ResourceManager {
    // Required methods
    fn register_resource(
        &mut self,
        resource: ManagedResource,
    ) -> Result<(), String>;
    fn update_resource(
        &mut self,
        resource_id: &str,
        attributes: &HashMap<String, String>,
    ) -> Result<(), String>;
    fn get_resource(&self, resource_id: &str) -> Option<ManagedResource>;
}

Required Methods§

Source

fn register_resource(&mut self, resource: ManagedResource) -> Result<(), String>

Source

fn update_resource( &mut self, resource_id: &str, attributes: &HashMap<String, String>, ) -> Result<(), String>

Source

fn get_resource(&self, resource_id: &str) -> Option<ManagedResource>

Implementors§