Trait rics::script::ScriptingInterface[][src]

pub trait ScriptingInterface {
    fn initialize(&self) -> bool { ... }
fn start(&self, _svr: &mut RICSServer, _node: i32) -> bool { ... }
fn can_rx(&self, _svr: &mut RICSServer, _id: u32, _data: Vec<u8>) -> bool { ... }
fn update(&self, _svr: &mut RICSServer) -> bool { ... } }

Provided methods

fn initialize(&self) -> bool[src]

Called at ScriptingInterface creation

fn start(&self, _svr: &mut RICSServer, _node: i32) -> bool[src]

Called just after server start

fn can_rx(&self, _svr: &mut RICSServer, _id: u32, _data: Vec<u8>) -> bool[src]

Can message rx callback

fn update(&self, _svr: &mut RICSServer) -> bool[src]

Generic slave update loop called as often as possible. This function should return as soon as possible if low latency is required. This function is only called when there is no more callbacks to call, so this can never be called in some cases if traffic is high.

Loading content...

Implementors

impl ScriptingInterface for DynlibScript[src]

fn update(&self, _svr: &mut RICSServer) -> bool[src]

No update function is implemented since a thread can simply be created in the start phase.

impl ScriptingInterface for NoEngine[src]

Loading content...