pub struct BridgeState<R: Runtime> {
pub app: AppHandle<R>,
pub pending: PendingResults,
pub console_tx: Sender<String>,
}Expand description
Shared state accessible to all axum route handlers.
Fields§
§app: AppHandle<R>§pending: PendingResults§console_tx: Sender<String>Auto Trait Implementations§
impl<R> Freeze for BridgeState<R>
impl<R> !RefUnwindSafe for BridgeState<R>
impl<R> Send for BridgeState<R>
impl<R> Sync for BridgeState<R>
impl<R> Unpin for BridgeState<R>
impl<R> UnsafeUnpin for BridgeState<R>
impl<R> !UnwindSafe for BridgeState<R>
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