[][src]Struct kompact::component::ComponentCore

pub struct ComponentCore { /* fields omitted */ }

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.

Methods

impl ComponentCore[src]

pub fn system(&self) -> &KompactSystem[src]

Returns a reference to the Kompact system this component is a part of

pub fn id(&self) -> &Uuid[src]

Returns the component's unique id

pub fn component(&self) -> Arc<dyn CoreContainer>[src]

Returns the component instance itself, wrapped in an Arc

This method will panic if the component hasn't been properly initialised, yet!

Trait Implementations

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,