pub trait BackendTrait {
// Required methods
fn test_backend_trait(&self) -> String;
fn get_api_token(
&self,
_site_name: &str,
) -> impl Future<Output = Result<String, Error>> + Send;
fn nid_to_xname(
&self,
auth_token: &str,
user_input_nid: &str,
is_regex: bool,
) -> impl Future<Output = Result<Vec<String>, Error>> + Send;
}
Required Methods§
fn test_backend_trait(&self) -> String
fn get_api_token( &self, _site_name: &str, ) -> impl Future<Output = Result<String, Error>> + Send
Sourcefn nid_to_xname(
&self,
auth_token: &str,
user_input_nid: &str,
is_regex: bool,
) -> impl Future<Output = Result<Vec<String>, Error>> + Send
fn nid_to_xname( &self, auth_token: &str, user_input_nid: &str, is_regex: bool, ) -> impl Future<Output = Result<Vec<String>, Error>> + Send
Get list of xnames from NIDs The list of NIDs can be: - comma separated list of NIDs (eg: nid000001,nid000002,nid000003) - regex (eg: nid00000.*) - hostlist (eg: nid0000[01-15])
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.