#[non_exhaustive]pub struct SpawnOptions {
pub host: HostIdentity,
pub timeouts: Timeouts,
pub remote: bool,
}Expand description
How Chain::spawn starts a chain: the host identity it presents to plugins, which
recovered chains keep, and its timeouts. Start from SpawnOptions::default and set the
fields to change.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.host: HostIdentityThe calling application’s identity.
timeouts: TimeoutsHow long the chain’s operations may go without a response from the helper.
remote: boolWhether the chain shows its editors remotely, to someone not in front of the machine
(macOS only; elsewhere starting fails as unsupported). Its helper never activates itself,
so it does not take the focus from other sessions on the machine, tells plugins that check
that it is active, and opens editors only with Chain::open_remote_editor. When the
application has accessibility access, the machine’s own mouse does not reach its windows;
without it a warning diagnostic says so. Recovered chains keep it.
Implementations§
Source§impl SpawnOptions
impl SpawnOptions
Sourcepub fn new(host: HostIdentity, timeouts: Timeouts) -> SpawnOptions
pub fn new(host: HostIdentity, timeouts: Timeouts) -> SpawnOptions
Starts chains that present host to plugins, with timeouts.