Expand description
Business domain classification for kernel messages.
This module provides domain enumeration and traits for categorizing messages by their business function. Domains enable:
- Type ID range allocation per domain
- Domain-specific routing and observability
- Cross-domain access control
§Example
ⓘ
use ringkernel_core::domain::{Domain, DomainMessage};
// Messages with domain derive get auto-assigned type IDs
#[derive(RingMessage)]
#[ring_message(type_id = 1, domain = "OrderMatching")]
pub struct SubmitOrder {
#[message(id)]
id: MessageId,
symbol: String,
}
// Final type ID = 500 (OrderMatching base) + 1 = 501Structs§
- Domain
Parse Error - Error returned when parsing an invalid domain string.
Enums§
- Domain
- Business domain classification for kernel messages.
Traits§
- Domain
Message - Trait for messages that belong to a specific business domain.