pub struct rsm_component_t { /* private fields */ }Expand description
identifier for a software module running instance, include the software module unique id and an instance id in RSM, every software module running instance(component instance or task) is a Finite State Machine(FSM), which mapped to an OS native thread, process message event loop
Implementations§
Source§impl rsm_component_t
impl rsm_component_t
pub fn new(id: rsm_component_id_t, node_id: u32, inst_id: usize) -> Self
pub fn new_zero() -> Self
pub fn get_cid(&self) -> rsm_component_id_t
pub fn get_inst_id(&self) -> usize
Trait Implementations§
Source§impl Clone for rsm_component_t
impl Clone for rsm_component_t
Source§fn clone(&self) -> rsm_component_t
fn clone(&self) -> rsm_component_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for rsm_component_t
impl Debug for rsm_component_t
Source§impl Display for rsm_component_t
impl Display for rsm_component_t
Source§impl Hash for rsm_component_t
impl Hash for rsm_component_t
Source§impl PartialEq for rsm_component_t
impl PartialEq for rsm_component_t
impl Copy for rsm_component_t
impl Eq for rsm_component_t
impl StructuralPartialEq for rsm_component_t
Auto Trait Implementations§
impl Freeze for rsm_component_t
impl RefUnwindSafe for rsm_component_t
impl Send for rsm_component_t
impl Sync for rsm_component_t
impl Unpin for rsm_component_t
impl UnwindSafe for rsm_component_t
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