pub struct RuntimeHttpStateParts {
pub controller: Option<Arc<Mutex<RuntimeController>>>,
pub sync_log: Option<Arc<dyn SyncLogView>>,
pub tick_counter: Option<Arc<AtomicU64>>,
pub app_query_router: Option<Arc<Mutex<ApiRouter>>>,
pub operation_mode: Option<Arc<Mutex<RuntimeOperationalMode>>>,
pub command_policy: Option<Arc<dyn CommandCapabilityPolicy>>,
pub supervisor: Option<Supervisor>,
pub auth: HttpCommandAuth,
}Expand description
Optional shared state used to compose a RuntimeHttpHost.
Fields§
§controller: Option<Arc<Mutex<RuntimeController>>>Runtime controller used by command and operational query routes.
sync_log: Option<Arc<dyn SyncLogView>>Read-only synchronization-log view used by status routes.
tick_counter: Option<Arc<AtomicU64>>Runtime tick counter exposed through diagnostics.
app_query_router: Option<Arc<Mutex<ApiRouter>>>Application-owned query router.
operation_mode: Option<Arc<Mutex<RuntimeOperationalMode>>>Live operational mode used to gate writes.
command_policy: Option<Arc<dyn CommandCapabilityPolicy>>Capability and leadership authorization policy for commands.
supervisor: Option<Supervisor>Managed-service supervisor exposed through private diagnostics.
auth: HttpCommandAuthBearer-token authorization configuration.
Trait Implementations§
Source§impl Default for RuntimeHttpStateParts
impl Default for RuntimeHttpStateParts
Source§fn default() -> RuntimeHttpStateParts
fn default() -> RuntimeHttpStateParts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeHttpStateParts
impl !UnwindSafe for RuntimeHttpStateParts
impl Freeze for RuntimeHttpStateParts
impl Send for RuntimeHttpStateParts
impl Sync for RuntimeHttpStateParts
impl Unpin for RuntimeHttpStateParts
impl UnsafeUnpin for RuntimeHttpStateParts
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