Module event

Module event 

Source
Expand description

crate::event::EventPublisher trait for receiving and publishing events from the host

Structs§

DefaultEventPublisher
A default implementation of the EventPublisher trait that does nothing. This is useful for testing or when no event publishing is required.

Traits§

EventPublisher
A trait for publishing wasmbus events. This can be implemented by any transport or bus implementation that can send the serialized event to the appropriate destination.

Functions§

component_scale_failed
Generates an event payload for when component scaling fails
component_scaled
Generates an event payload for when a component is scaled
config_deleted
Generates an event payload for when a config is deleted
config_set
Generates an event payload for when a config is set
labels_changed
Generates an event payload for when host labels are changed
linkdef_deleted
Generates an event payload for when a link definition is deleted
linkdef_set
Generates an event payload for when a link definition is set
linkdef_set_failed
Generates an event payload for when setting a link definition fails
provider_health_check
Generates an event payload for provider health checks
provider_start_failed
Generates an event payload for when a provider fails to start
provider_started
Generates an event payload for when a provider starts
provider_stopped
Generates an event payload for when a provider stops