Module kompact::prelude

source ·
Expand description

To get all kompact related things into scope import as use kompact::prelude::*.

Re-exports

Modules

Macros

  • Log critical level record
  • Log debug level record
  • Log error level record
  • ignore_controlDeprecated
    A macro that provides an empty implementation of ComponentLifecycle for the given component
  • A macro that provides an empty implementation of the required handler for the given $port on the given $component
  • A macro that provides an empty implementation of ComponentLifecycle for the given component
  • A macro that provides an empty implementation of the provided handler for the given $port on the given $component
  • Log info level record
  • A macro that provides an implementation of ComponentLifecycle for the given component that logs the lifecycle stages at INFO log level.
  • A macro to make matching serialisation ids and deserialising easier
  • Macro for building group of key-value pairs: OwnedKV
  • Log trace level record
  • Log warning level record

Structs

Enums

Traits

Functions

  • Connect two components on their instances of port type P.
  • Connect two port instances.
  • Run a future to completion on the current thread.
  • Blocks the current waiting for f to be completed or for the timeout to expire
  • Applies function f to the component definitions of c1 and c2, while holding both mutexes.
  • Produces a new KPromise/KFuture pair.

Type Definitions

  • The type of actor references for dispatcher implementations
  • Type alias for the concrete implementation of serialisation ids.

Derive Macros