Skip to main content

Crate soaprs_core

Crate soaprs_core 

Source
Expand description

Core, infrastructure-independent contracts for soaprs.

Structs§

CausationId
Identity of the message that directly caused another message.
CommandNext
Remaining command middleware followed by the final typed handler.
CommandPipeline
Ordered middleware pipeline ending in one typed command handler.
CorrelationId
Identity shared by messages that belong to one application flow.
DiagnosticId
Opaque identifier used to correlate a returned error with diagnostics.
MessageEnvelope
A strongly typed message together with tracing metadata.
MessageId
Stable identity of a command, query, or event message.
MessageMetadata
Metadata carried independently from a strongly typed message payload.
QueryNext
Remaining query middleware followed by the final typed handler.
QueryPipeline
Ordered middleware pipeline ending in one typed query handler.
SoapError
Stable application error with optional technical diagnostics.

Enums§

ErrorTransience
Whether the underlying failure condition is expected to be short-lived.
SoapErrorKind
Stable category of a SoapError.

Traits§

Clock
Supplies wall-clock time without making core services read the system clock.
Command
A named operation that may change application state.
CommandDispatcher
Dispatches one concrete command type while preserving its output type.
CommandHandler
Handles one concrete command type.
CommandMiddleware
Intercepts one concrete command type around its next processing step.
Entity
A domain object with a stable identity.
Query
A named read operation with an output type fixed by the query itself.
QueryDispatcher
Dispatches one concrete query type while preserving its output type.
QueryHandler
Handles one concrete query type.
QueryMiddleware
Intercepts one concrete query type around its next processing step.
UseCase
An object-safe asynchronous application operation.

Type Aliases§

BoxFuture
A sendable future tied to the lifetime of the borrowed service.
SoapResult
Result type returned by soaprs ports.