pub struct ComponentCore { /* private fields */ }Expand description
The core of a Kompact component
Contains the unique id, as well as references to the Kompact system, internal state variables, and the component instance itself.
Implementations§
Source§impl ComponentCore
impl ComponentCore
Sourcepub fn system(&self) -> &KompactSystem
pub fn system(&self) -> &KompactSystem
Returns a reference to the Kompact system this component is a part of
Sourcepub fn component(&self) -> Arc<dyn CoreContainer>
pub fn component(&self) -> Arc<dyn CoreContainer>
Returns the component instance itself, wrapped in an Arc
This method will panic if the component hasn’t been properly initialised, yet!
Auto Trait Implementations§
impl !Freeze for ComponentCore
impl !RefUnwindSafe for ComponentCore
impl Send for ComponentCore
impl Sync for ComponentCore
impl Unpin for ComponentCore
impl UnsafeUnpin for ComponentCore
impl !UnwindSafe for ComponentCore
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