pub struct CheckContext {
pub current_sequence: u64,
pub binary_version: String,
pub platform: &'static str,
pub arch: &'static str,
pub channel: Option<String>,
pub headers: HashMap<String, String>,
pub endpoint_override: Option<String>,
}Expand description
Context passed to resolvers on each check. Contains runtime information about the current app state.
Fields§
§current_sequence: u64Current monotonic sequence (0 if no version cached).
binary_version: StringBinary version from tauri.conf.json.
platform: &'static strCurrent platform (e.g. “macos”, “windows”, “linux”, “android”).
arch: &'static strCurrent architecture (e.g. “x86_64”, “aarch64”).
channel: Option<String>Active channel, if configured.
headers: HashMap<String, String>Runtime HTTP headers (set via configure()).
Merged with any headers baked into the resolver at init time,
with runtime headers taking precedence.
endpoint_override: Option<String>Runtime endpoint override (set via configure()).
When set, replaces the endpoint baked into HttpResolver at init time.
Trait Implementations§
Source§impl Clone for CheckContext
impl Clone for CheckContext
Source§fn clone(&self) -> CheckContext
fn clone(&self) -> CheckContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CheckContext
impl RefUnwindSafe for CheckContext
impl Send for CheckContext
impl Sync for CheckContext
impl Unpin for CheckContext
impl UnsafeUnpin for CheckContext
impl UnwindSafe for CheckContext
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