pub struct RouterStateInner { /* private fields */ }Expand description
Router state shared across all HTTP handlers.
This struct holds the state that is accessible to all read-only introspection
endpoints (health, ready, stats). It is wrapped in Arc to enable cloning
as required by axum’s router state system.
§Invariant boundaries
This state is read-only. Handlers must not mutate any fields or introduce
interior mutability beyond Arc cloning.
Implementations§
Source§impl RouterStateInner
impl RouterStateInner
Sourcepub fn new(
router_config: RouterConfig,
shared_projection: Arc<RwLock<ReplayReducer>>,
observability: RouterObservability,
ready_status: ReadyStatus,
) -> Self
pub fn new( router_config: RouterConfig, shared_projection: Arc<RwLock<ReplayReducer>>, observability: RouterObservability, ready_status: ReadyStatus, ) -> Self
Creates a new router state from bootstrap components.
The ready_status field is derived from
BootstrapState::ready_status().
Creates router state with control mutation authority context.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RouterStateInner
impl !RefUnwindSafe for RouterStateInner
impl Send for RouterStateInner
impl Sync for RouterStateInner
impl Unpin for RouterStateInner
impl UnsafeUnpin for RouterStateInner
impl !UnwindSafe for RouterStateInner
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