pub trait NetdoxReader {
// Required methods
fn get_default_network(
&mut self,
) -> impl Future<Output = FCallResult<String>> + Send;
fn qualify_dns_names(
&mut self,
names: Vec<String>,
) -> impl Future<Output = FCallResult<Vec<String>>> + Send;
fn get_dns_names(
&mut self,
) -> impl Future<Output = FCallResult<HashSet<String>>> + Send;
fn get_nodes(
&mut self,
) -> impl Future<Output = FCallResult<Vec<Node>>> + Send;
fn get_node(
&mut self,
link_id: &str,
) -> impl Future<Output = FCallResult<Node>> + Send;
fn get_dns_metadata(
&mut self,
name: &str,
) -> impl Future<Output = FCallResult<HashMap<String, String>>> + Send;
fn get_node_metadata(
&mut self,
node: &Node,
) -> impl Future<Output = FCallResult<HashMap<String, String>>> + Send;
}Expand description
Defines the read API.
Required Methods§
Sourcefn get_default_network(
&mut self,
) -> impl Future<Output = FCallResult<String>> + Send
fn get_default_network( &mut self, ) -> impl Future<Output = FCallResult<String>> + Send
Fetch the default network namespace.
Sourcefn qualify_dns_names(
&mut self,
names: Vec<String>,
) -> impl Future<Output = FCallResult<Vec<String>>> + Send
fn qualify_dns_names( &mut self, names: Vec<String>, ) -> impl Future<Output = FCallResult<Vec<String>>> + Send
Prepend the default network qualifier to a list of DNS names.
Sourcefn get_dns_names(
&mut self,
) -> impl Future<Output = FCallResult<HashSet<String>>> + Send
fn get_dns_names( &mut self, ) -> impl Future<Output = FCallResult<HashSet<String>>> + Send
Fetch all the DNS names from the datastore.
Sourcefn get_nodes(&mut self) -> impl Future<Output = FCallResult<Vec<Node>>> + Send
fn get_nodes(&mut self) -> impl Future<Output = FCallResult<Vec<Node>>> + Send
Fetch all the nodes from the datastore.
Sourcefn get_node(
&mut self,
link_id: &str,
) -> impl Future<Output = FCallResult<Node>> + Send
fn get_node( &mut self, link_id: &str, ) -> impl Future<Output = FCallResult<Node>> + Send
Fetch a processed node using its link ID.
Sourcefn get_dns_metadata(
&mut self,
name: &str,
) -> impl Future<Output = FCallResult<HashMap<String, String>>> + Send
fn get_dns_metadata( &mut self, name: &str, ) -> impl Future<Output = FCallResult<HashMap<String, String>>> + Send
Fetch the metadata for a DNS name.
Sourcefn get_node_metadata(
&mut self,
node: &Node,
) -> impl Future<Output = FCallResult<HashMap<String, String>>> + Send
fn get_node_metadata( &mut self, node: &Node, ) -> impl Future<Output = FCallResult<HashMap<String, String>>> + Send
Fetch the metadata for a node.
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.