pub struct RequestContext {
pub bundle_id: Option<String>,
pub activate: bool,
}Expand description
Per-request context carried across the wire via the
App-Bundle-Id and App-Activate HTTP headers. Client sets
these via HttpRunnerClient::with_target_bundle_id /
with_auto_activate, or per-call by cloning the client with a
modified context. The runner side reads them into
SmixRunnerServer.currentContext (task-local) and passes to
resolveApp() in every app-touching handler.
The two-field split is intentional: bundle_id is “which app do I
want to talk to”, activate is “should we bring it foreground first”.
Fields§
§bundle_id: Option<String>§activate: boolTrait Implementations§
Source§impl Clone for RequestContext
impl Clone for RequestContext
Source§fn clone(&self) -> RequestContext
fn clone(&self) -> RequestContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequestContext
impl Debug for RequestContext
Source§impl Default for RequestContext
impl Default for RequestContext
Source§fn default() -> RequestContext
fn default() -> RequestContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RequestContext
impl RefUnwindSafe for RequestContext
impl Send for RequestContext
impl Sync for RequestContext
impl Unpin for RequestContext
impl UnsafeUnpin for RequestContext
impl UnwindSafe for RequestContext
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