[][src]Struct kompact::KompactConfig

pub struct KompactConfig { /* fields omitted */ }

Methods

impl KompactConfig[src]

pub fn new() -> KompactConfig[src]

pub fn label(&mut self, s: String) -> &mut Self[src]

pub fn throughput(&mut self, n: usize) -> &mut Self[src]

pub fn msg_priority(&mut self, r: f32) -> &mut Self[src]

pub fn threads(&mut self, n: usize) -> &mut Self[src]

pub fn scheduler<E, F>(&mut self, f: F) -> &mut Self where
    E: Executor + Sync + 'static,
    F: Fn(usize) -> E + 'static, 
[src]

pub fn timer<T, F>(&mut self, f: F) -> &mut Self where
    T: TimerComponent + 'static,
    F: Fn() -> Box<dyn TimerComponent> + 'static, 
[src]

pub fn system_components<B, C, FB, FC>(
    &mut self,
    deadletter_fn: FB,
    dispatcher_fn: FC
) -> &mut Self where
    B: ComponentDefinition + Sized + 'static,
    C: ComponentDefinition + Sized + 'static + Dispatcher,
    FB: Fn(Promise<()>) -> B + 'static,
    FC: Fn(Promise<()>) -> C + 'static, 
[src]

pub fn logger(&mut self, logger: KompactLogger) -> &mut Self[src]

pub fn build(self) -> Result<KompactSystem, KompactError>[src]

Trait Implementations

impl Default for KompactConfig[src]

impl Clone for KompactConfig[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for KompactConfig[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T