pub trait ComponentTrait {
// Required methods
fn get_all_nodes(
&self,
auth_token: &str,
nid_only: Option<&str>,
) -> impl Future<Output = Result<NodeMetadataArray, Error>> + Send;
fn get(
&self,
auth_token: &str,
id: Option<&str>,
type: Option<&str>,
state: Option<&str>,
flag: Option<&str>,
role: Option<&str>,
subrole: Option<&str>,
enabled: Option<&str>,
software_status: Option<&str>,
subtype: Option<&str>,
arch: Option<&str>,
class: Option<&str>,
nid: Option<&str>,
nid_start: Option<&str>,
nid_end: Option<&str>,
partition: Option<&str>,
group: Option<&str>,
state_only: Option<&str>,
flag_only: Option<&str>,
role_only: Option<&str>,
nid_only: Option<&str>,
) -> impl Future<Output = Result<NodeMetadataArray, Error>> + Send;
fn get_node_metadata_available(
&self,
auth_token: &str,
) -> impl Future<Output = Result<Vec<Component>, Error>> + Send;
fn post_nodes(
&self,
auth_token: &str,
component: ComponentArrayPostArray,
) -> impl Future<Output = Result<(), Error>> + Send;
fn delete_node(
&self,
auth_token: &str,
id: &str,
) -> impl Future<Output = Result<Value, Error>> + Send;
}Required Methods§
fn get_all_nodes( &self, auth_token: &str, nid_only: Option<&str>, ) -> impl Future<Output = Result<NodeMetadataArray, Error>> + Send
fn get( &self, auth_token: &str, id: Option<&str>, type: Option<&str>, state: Option<&str>, flag: Option<&str>, role: Option<&str>, subrole: Option<&str>, enabled: Option<&str>, software_status: Option<&str>, subtype: Option<&str>, arch: Option<&str>, class: Option<&str>, nid: Option<&str>, nid_start: Option<&str>, nid_end: Option<&str>, partition: Option<&str>, group: Option<&str>, state_only: Option<&str>, flag_only: Option<&str>, role_only: Option<&str>, nid_only: Option<&str>, ) -> impl Future<Output = Result<NodeMetadataArray, Error>> + Send
fn get_node_metadata_available( &self, auth_token: &str, ) -> impl Future<Output = Result<Vec<Component>, Error>> + Send
fn post_nodes( &self, auth_token: &str, component: ComponentArrayPostArray, ) -> impl Future<Output = Result<(), Error>> + Send
fn delete_node( &self, auth_token: &str, id: &str, ) -> impl Future<Output = Result<Value, Error>> + Send
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.