Struct rics::script::DynlibScript [−][src]
Dynamic library script
Functions supported
bool rics_init(void) Called at initialization
bool rics_start(int32_t node) Called after the system is started
bool rics_can_callback(uint32_t id, usize_t len, uint8_t* dat) Called when a can message is detected by the program
Implementations
impl DynlibScript
[src]
Trait Implementations
impl ScriptingInterface for DynlibScript
[src]
fn initialize(&self) -> bool
[src]
fn start(&self, _svr: &mut RICSServer, node: i32) -> bool
[src]
fn can_rx(&self, _svr: &mut RICSServer, id: u32, data: Vec<u8>) -> bool
[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.
Auto Trait Implementations
impl RefUnwindSafe for DynlibScript
impl Send for DynlibScript
impl Sync for DynlibScript
impl Unpin for DynlibScript
impl UnwindSafe for DynlibScript
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,