pub struct SidecarOptions {
pub bin: String,
pub dev_command: Option<Vec<String>>,
pub event_prefix: String,
pub ready_timeout: Duration,
pub restart: bool,
}Expand description
Configuration for a supervised sidecar.
Fields§
§bin: StringexternalBin base name bundled next to the app executable, e.g.
"picoframe-worker-sidecar" (the platform triple/suffix is added at resolve time).
dev_command: Option<Vec<String>>Fallback command used under tauri dev when the compiled binary is not found next to
the executable, e.g. ["bun", "run", "/abs/path/to/server.ts"]. The first element is
the program. Ignored in release builds.
event_prefix: StringTauri event name prefix; each streamed progress record is emitted as
"<event_prefix>/progress".
ready_timeout: DurationHow long to wait for the handshake file + a healthy /health before failing.
restart: boolRespawn the child (and reconnect the event stream) if it exits unexpectedly.
Implementations§
Trait Implementations§
Source§impl Clone for SidecarOptions
impl Clone for SidecarOptions
Source§fn clone(&self) -> SidecarOptions
fn clone(&self) -> SidecarOptions
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 moreAuto Trait Implementations§
impl Freeze for SidecarOptions
impl RefUnwindSafe for SidecarOptions
impl Send for SidecarOptions
impl Sync for SidecarOptions
impl Unpin for SidecarOptions
impl UnsafeUnpin for SidecarOptions
impl UnwindSafe for SidecarOptions
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