[−][src]Struct kompact::KompactSystem
Methods
impl KompactSystem
[src]
pub fn new(conf: KompactConfig) -> Result<Self, KompactError>
[src]
pub fn schedule(&self, c: Arc<dyn CoreContainer>)
[src]
pub fn logger(&self) -> &KompactLogger
[src]
pub fn poison(&self)
[src]
pub fn create<C, F>(&self, f: F) -> Arc<Component<C>> where
F: FnOnce() -> C,
C: ComponentDefinition + 'static,
[src]
F: FnOnce() -> C,
C: ComponentDefinition + 'static,
Create a new component.
New components are not started automatically.
pub fn create_unsupervised<C, F>(&self, f: F) -> Arc<Component<C>> where
F: FnOnce() -> C,
C: ComponentDefinition + 'static,
[src]
F: FnOnce() -> C,
C: ComponentDefinition + 'static,
Use this to create system components!
During system initialisation the supervisor is not available, yet, so normal create calls will panic!
pub fn create_and_register<C, F>(
&self,
f: F
) -> (Arc<Component<C>>, Future<Result<(), RegistrationError>>) where
F: FnOnce() -> C,
C: ComponentDefinition + 'static,
[src]
&self,
f: F
) -> (Arc<Component<C>>, Future<Result<(), RegistrationError>>) where
F: FnOnce() -> C,
C: ComponentDefinition + 'static,
pub fn create_and_start<C, F>(&self, f: F) -> Arc<Component<C>> where
F: FnOnce() -> C,
C: ComponentDefinition + 'static,
[src]
F: FnOnce() -> C,
C: ComponentDefinition + 'static,
Instantiates the component, registers it with the system dispatcher, and starts its lifecycle.
pub fn register_by_alias<C, A>(
&self,
c: &Arc<Component<C>>,
alias: A
) -> Future<Result<(), RegistrationError>> where
C: ComponentDefinition + 'static,
A: Into<String>,
[src]
&self,
c: &Arc<Component<C>>,
alias: A
) -> Future<Result<(), RegistrationError>> where
C: ComponentDefinition + 'static,
A: Into<String>,
Attempts to register the provided component with a human-readable alias.
Returns
A Future which resolves to an error if the alias is not unique, and a unit () if successful.
pub fn start<C>(&self, c: &Arc<Component<C>>) where
C: ComponentDefinition + 'static,
[src]
C: ComponentDefinition + 'static,
pub fn start_notify<C>(&self, c: &Arc<Component<C>>) -> Future<()> where
C: ComponentDefinition + 'static,
[src]
C: ComponentDefinition + 'static,
pub fn stop<C>(&self, c: &Arc<Component<C>>) where
C: ComponentDefinition + 'static,
[src]
C: ComponentDefinition + 'static,
pub fn stop_notify<C>(&self, c: &Arc<Component<C>>) -> Future<()> where
C: ComponentDefinition + 'static,
[src]
C: ComponentDefinition + 'static,
pub fn kill<C>(&self, c: Arc<Component<C>>) where
C: ComponentDefinition + 'static,
[src]
C: ComponentDefinition + 'static,
pub fn kill_notify<C>(&self, c: Arc<Component<C>>) -> Future<()> where
C: ComponentDefinition + 'static,
[src]
C: ComponentDefinition + 'static,
pub fn trigger_i<P: Port + 'static>(
&self,
msg: P::Indication,
port: RequiredRef<P>
)
[src]
&self,
msg: P::Indication,
port: RequiredRef<P>
)
pub fn trigger_r<P: Port + 'static>(
&self,
msg: P::Request,
port: ProvidedRef<P>
)
[src]
&self,
msg: P::Request,
port: ProvidedRef<P>
)
pub fn throughput(&self) -> usize
[src]
pub fn max_messages(&self) -> usize
[src]
pub fn await_termination(self)
[src]
pub fn shutdown(self) -> Result<(), String>
[src]
pub fn system_path(&self) -> SystemPath
[src]
Trait Implementations
impl ActorRefFactory for KompactSystem
[src]
impl Dispatching for KompactSystem
[src]
fn dispatcher_ref(&self) -> ActorRef
[src]
impl ActorSource for KompactSystem
[src]
fn path_resolvable(&self) -> PathResolvable
[src]
impl TimerRefFactory for KompactSystem
[src]
impl Clone for KompactSystem
[src]
fn clone(&self) -> KompactSystem
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for KompactSystem
impl Sync for KompactSystem
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,