pub struct BridgeState {
pub app_name: String,
pub eval_tx: Sender<EvalCommand>,
pub started_at: Instant,
pub pid: u32,
}Expand description
Shared state for the HTTP bridge.
This struct holds the internal state used by the Axum handlers. You don’t need to interact with this directly.
Fields§
§app_name: StringThe application name, used in status responses.
eval_tx: Sender<EvalCommand>Channel to send eval commands to the Dioxus app.
started_at: InstantWhen the bridge was started, for uptime calculation.
pid: u32Process ID of the running application.
Auto Trait Implementations§
impl Freeze for BridgeState
impl RefUnwindSafe for BridgeState
impl Send for BridgeState
impl Sync for BridgeState
impl Unpin for BridgeState
impl UnwindSafe for BridgeState
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