Crate wire_framework

Source

Re-exports§

pub use self::resource::Resource;
pub use self::service::FromContext;
pub use self::service::IntoContext;
pub use self::service::StopReceiver;
pub use self::task::Task;
pub use self::task::TaskId;
pub use self::wiring_layer::WiringError;
pub use self::wiring_layer::WiringLayer;

Modules§

health_check
resource
service
task
Tasks define the “runnable” concept of the service, e.g. a unit of work that can be executed by the service.
utils
vlog
This crate contains the observability subsystem. It is responsible for providing a centralized interface for consistent observability configuration.
wiring_layer

Derive Macros§

FromContext
Derive macro for the FromContext trait. Derive macro for the FromContext trait. Allows to automatically fetch all the resources and tasks from the context.
IntoContext
Derive macro for the IntoContext trait. Derive macro for the IntoContext trait. Allows to automatically insert all the resources in tasks created by the wiring layer into the context.