RuntimeProcess

Trait RuntimeProcess 

Source
pub trait RuntimeProcess: Send + Sync {
    // Required methods
    fn is_running(&mut self) -> bool;
    fn stop(&mut self) -> Result<()>;
    fn pid(&self) -> Option<u32>;
    fn send_message(&mut self, message: &[u8]) -> Result<()>;
    fn receive_message(&mut self) -> Result<Vec<u8>>;
}
Expand description

Running plugin process

Required Methods§

Source

fn is_running(&mut self) -> bool

Check if process is running

Source

fn stop(&mut self) -> Result<()>

Stop the process

Source

fn pid(&self) -> Option<u32>

Get process ID

Source

fn send_message(&mut self, message: &[u8]) -> Result<()>

Send message to plugin

Source

fn receive_message(&mut self) -> Result<Vec<u8>>

Receive message from plugin

Implementors§