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§
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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".