pub struct CreateEffects {
pub signed_urls: bool,
pub security_preflight_pending: bool,
}Expand description
Parsed side effects of a create command that the host must apply to its
own transport/clock (the router stays transport-agnostic). The client is
already installed into the Option<SyncClient> slot by dispatch.
Fields§
§signed_urls: bool§5.4 capability the harness/host announced for its endpoints — the
host sets its transport’s supports_url_fetch accordingly.
security_preflight_pending: boolTrue while a security preflight is pending: a preflighted client was
installed (or entered preflight, or was shut down mid-preflight) and
activateSecurity has yet to complete. dispatch maintains this so a
replacement create without the securityPreflight flag is refused
across shutdown, where the client slot is empty, on a host that reuses
one CreateEffects across creates (the Tauri plugin, the conformance
shim, the bench harness).
A host that allocates a fresh CreateEffects per create — the React
Native native module rebuilds its FFI handle on every create — starts
each create with this flag clear. For those hosts the persisted marker
in the client core carries the gate: a file-backed replica reopens in
preflight, and the create path refuses a plain re-create against it.
This in-memory flag covers the same-handle case where no file persists
the marker.
Trait Implementations§
Source§impl Clone for CreateEffects
impl Clone for CreateEffects
Source§fn clone(&self) -> CreateEffects
fn clone(&self) -> CreateEffects
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more