TraversalServiceTrait

Trait TraversalServiceTrait 

Source
pub trait TraversalServiceTrait {
    type Graph: SwhOptFullGraph + Clone + Send + Sync + 'static;

    // Required methods
    fn try_get_node_id(&self, swhid: &str) -> Result<usize, Status>;
    fn graph(&self) -> &Self::Graph;
    fn statsd_client(&self) -> Option<&Arc<StatsdClient>>;
}

Required Associated Types§

Source

type Graph: SwhOptFullGraph + Clone + Send + Sync + 'static

Required Methods§

Source

fn try_get_node_id(&self, swhid: &str) -> Result<usize, Status>

Source

fn graph(&self) -> &Self::Graph

Source

fn statsd_client(&self) -> Option<&Arc<StatsdClient>>

Implementors§