Skip to main content

Module slice

Module slice 

Source
Expand description

Role-slice hot reload after Event::SpecReloaded.

reconfigure currently only runs on welcome. A live connection that stays up across onlyne reload never sees that frame, so this module compares the query_roles row against the dispatcher’s current slice and calls reconfigure only when runtime, max_sessions, or the role’s allowed_targets changed.

The drive travels in the slice because it is the runtime’s property, read from the spec’s [client.runtime]; the placement it pairs with is the machine’s and never appears here (docs/v2-PLAN.md §“驱动与放置”).

Structs§

RoleSlice
The fields reconfigure consumes.

Functions§

apply_if_changed
Apply next when it differs; return the fields that changed.
drive_of
The wire’s drive as the file’s drive.
slice_diff
Fields that would change if next were applied.