pub trait BackendTrait {
// Provided methods
async fn get_api_token(&self, site_name: &str) -> Result<String, Error> { ... }
async fn power_on_sync(
&self,
auth_token: &str,
nodes: &[String],
) -> Result<Value, Error> { ... }
async fn power_reset_sync(
&self,
auth_token: &str,
nodes: &[String],
force: bool,
) -> Result<Value, Error> { ... }
}Provided Methods§
async fn get_api_token(&self, site_name: &str) -> Result<String, Error>
async fn power_on_sync( &self, auth_token: &str, nodes: &[String], ) -> Result<Value, Error>
async fn power_reset_sync( &self, auth_token: &str, nodes: &[String], force: bool, ) -> Result<Value, Error>
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.