Skip to main content

Module port

Module port 

Source
Expand description

The ports a domain depends on: repository, event dispatch, clock, and id generation.

Modules§

clock
A source of the current time.
event
Publishing recorded crate::domain::DomainEvents.
id
Generating crate::domain::EntityIds.
repository
Loading, saving, and deleting crate::domain::AggregateRoots.

Structs§

PortError
An error from a port implementation (repository, event dispatcher, etc.), tagged with a PortErrorKind and wrapping the underlying cause.

Enums§

PortErrorKind
The general category of a PortError, so callers can react (e.g. retry) without inspecting the underlying error.