pub trait BackendTrait {
Show 15 methods
// Required methods
fn test_backend_trait(&self) -> String;
fn get_api_token(
&self,
_site_name: &str,
) -> impl Future<Output = Result<String, Error>> + Send;
fn get_hsm_name_available(
&self,
_jwt_token: &str,
) -> impl Future<Output = Result<Vec<String>, Error>> + Send;
fn get_member_vec_from_hsm_name_vec(
&self,
_auth_token: &str,
_hsm_group_name_vec: Vec<String>,
) -> impl Future<Output = Result<Vec<String>, Error>> + Send;
fn get_hsm_map_and_filter_by_hsm_name_vec(
&self,
_auth_token: &str,
_hsm_name_vec: Vec<&str>,
) -> impl Future<Output = Result<HashMap<String, Vec<String>>, Error>> + Send;
fn get_all_hsm_group(
&self,
_auth_token: &str,
) -> impl Future<Output = Result<Vec<HsmGroup>, Error>> + Send;
fn get_hsm_group(
&self,
_auth_token: &str,
_hsm_name: &str,
) -> impl Future<Output = Result<HsmGroup, Error>> + Send;
fn add_hsm_group(
&self,
_auth_token: &str,
_hsm_name: HsmGroup,
) -> impl Future<Output = Result<HsmGroup, Error>> + Send;
fn delete_hsm_group(
&self,
_auth_token: &str,
_hsm_group_label: &str,
) -> impl Future<Output = Result<Value, Error>> + Send;
// Provided methods
fn power_on_sync(
&self,
_auth_token: &str,
_nodes: &[String],
) -> impl Future<Output = Result<Value, Error>> + Send { ... }
fn power_off_sync(
&self,
_auth_token: &str,
_nodes: &[String],
_force: bool,
) -> impl Future<Output = Result<Value, Error>> + Send { ... }
fn power_reset_sync(
&self,
_auth_token: &str,
_nodes: &[String],
_force: bool,
) -> impl Future<Output = Result<Value, Error>> + Send { ... }
fn get_bootparameters(
&self,
_auth_token: &str,
_nodes: &[String],
) -> impl Future<Output = Result<Vec<BootParameters>, Error>> + Send { ... }
fn update_bootparameters(
&self,
_auth_token: &str,
_boot_parameters: &BootParameters,
) -> impl Future<Output = Result<(), Error>> + Send { ... }
fn add_kernel_params(
&mut self,
_new_kernel_params: &str,
) -> Result<bool, Error> { ... }
}Required Methods§
fn test_backend_trait(&self) -> String
fn get_api_token( &self, _site_name: &str, ) -> impl Future<Output = Result<String, Error>> + Send
fn get_hsm_name_available( &self, _jwt_token: &str, ) -> impl Future<Output = Result<Vec<String>, Error>> + Send
fn get_member_vec_from_hsm_name_vec( &self, _auth_token: &str, _hsm_group_name_vec: Vec<String>, ) -> impl Future<Output = Result<Vec<String>, Error>> + Send
fn get_hsm_map_and_filter_by_hsm_name_vec( &self, _auth_token: &str, _hsm_name_vec: Vec<&str>, ) -> impl Future<Output = Result<HashMap<String, Vec<String>>, Error>> + Send
fn get_all_hsm_group( &self, _auth_token: &str, ) -> impl Future<Output = Result<Vec<HsmGroup>, Error>> + Send
fn get_hsm_group( &self, _auth_token: &str, _hsm_name: &str, ) -> impl Future<Output = Result<HsmGroup, Error>> + Send
fn add_hsm_group( &self, _auth_token: &str, _hsm_name: HsmGroup, ) -> impl Future<Output = Result<HsmGroup, Error>> + Send
fn delete_hsm_group( &self, _auth_token: &str, _hsm_group_label: &str, ) -> impl Future<Output = Result<Value, Error>> + Send
Provided Methods§
fn power_on_sync( &self, _auth_token: &str, _nodes: &[String], ) -> impl Future<Output = Result<Value, Error>> + Send
fn power_off_sync( &self, _auth_token: &str, _nodes: &[String], _force: bool, ) -> impl Future<Output = Result<Value, Error>> + Send
fn power_reset_sync( &self, _auth_token: &str, _nodes: &[String], _force: bool, ) -> impl Future<Output = Result<Value, Error>> + Send
fn get_bootparameters( &self, _auth_token: &str, _nodes: &[String], ) -> impl Future<Output = Result<Vec<BootParameters>, Error>> + Send
fn update_bootparameters( &self, _auth_token: &str, _boot_parameters: &BootParameters, ) -> impl Future<Output = Result<(), Error>> + Send
fn add_kernel_params(&mut self, _new_kernel_params: &str) -> Result<bool, 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.