pub struct ShellCmdNode { /* private fields */ }Implementations§
Source§impl ShellCmdNode
impl ShellCmdNode
pub async fn new(name: &str, commands: Vec<ShellCmd>) -> Result<Self>
pub async fn register_cmds( &self, addr: Addr, tx: &Sender<YgwMessage>, ) -> Result<()>
pub async fn register_params( &self, addr: Addr, tx: &Sender<YgwMessage>, ) -> Result<()>
pub async fn execute_cmd( &self, addr: Addr, pc: PreparedCommand, tx: &Sender<YgwMessage>, seq_num: u32, ) -> Result<(usize, usize, usize, usize)>
Trait Implementations§
Source§impl YgwNode for ShellCmdNode
impl YgwNode for ShellCmdNode
Source§fn properties(&self) -> &YgwLinkNodeProperties
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,
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
Auto Trait Implementations§
impl Freeze for ShellCmdNode
impl RefUnwindSafe for ShellCmdNode
impl Send for ShellCmdNode
impl Sync for ShellCmdNode
impl Unpin for ShellCmdNode
impl UnwindSafe for ShellCmdNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more