YgwNode

Trait YgwNode 

Source
pub trait YgwNode: Send {
    // Required methods
    fn properties(&self) -> &YgwLinkNodeProperties;
    fn run<'async_trait>(
        self: Box<Self>,
        node_id: u32,
        tx: Sender<YgwMessage>,
        rx: Receiver<YgwMessage>,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait;

    // Provided method
    fn sub_links(&self) -> &[Link] { ... }
}
Expand description

A YGW node represents a connection to an end device. The node appears as a link in Yamcs and can have sub-links.

The sub-link allow to separate data coming from a node into different streams in Yamcs. Different TM pre-processor/ CMD post-processor can be set for each sub-link.

Required Methods§

Source

fn properties(&self) -> &YgwLinkNodeProperties

the properties of the node - will be communicated to Yamcs

Source

fn run<'async_trait>( self: Box<Self>, node_id: u32, tx: Sender<YgwMessage>, rx: Receiver<YgwMessage>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,

method called by the ygw server to run the node tx and rx are used to communicate between the node and the server the node_id is the id allocated to this node, it has to be used for all the messages sent to the server

Provided Methods§

the list of sub links - will also be communicated to Yamcs

Implementors§