pub struct Config {
pub id: Option<String>,
pub router_channel: Option<String>,
pub request_ttl: Duration,
pub event_ttl: Duration,
}Expand description
Configuration for a CommandRegistry.
Fields§
§id: Option<String>Registry identifier used in log messages. Defaults to a random UUID.
router_channel: Option<String>Channel id to escalate unknown commands and new registrations
to. Leave None for a root registry.
request_ttl: DurationHow long a pending execute / register reply can wait before
being rejected with CommandError::Timeout. Zero disables
the TTL check (request hangs until the channel closes).
event_ttl: DurationHow long a seen event id is remembered for dedup purposes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more