oct-cloud 0.8.0

opencloudtool (oct)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// Defines the basic operations for managing cloud resources.
/// It includes methods for creating and destroying resources asynchronously.
/// Implementations of this trait should provide the specific logic for
/// resource management in the context of the cloud provider being used.
pub trait Resource {
    fn create(
        &mut self,
    ) -> impl std::future::Future<Output = Result<(), Box<dyn std::error::Error>>> + Send;
    fn destroy(
        &mut self,
    ) -> impl std::future::Future<Output = Result<(), Box<dyn std::error::Error>>> + Send;
}