pub struct LauncherConfig {
pub binary: String,
pub launcher_args: Vec<String>,
}Expand description
Configuration for launching the OpenCode server.
Supports both direct binary invocation and launcher-based invocation:
- Direct:
binary = "/path/to/opencode",launcher_args = [] - Launcher:
binary = "bunx",launcher_args = ["--yes", "opencode-ai@1.3.17"]
Fields§
§binary: StringPath to the binary (or launcher binary like bunx).
launcher_args: Vec<String>Extra arguments inserted between the binary and serve command.
Trait Implementations§
Source§impl Clone for LauncherConfig
impl Clone for LauncherConfig
Source§fn clone(&self) -> LauncherConfig
fn clone(&self) -> LauncherConfig
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 LauncherConfig
impl RefUnwindSafe for LauncherConfig
impl Send for LauncherConfig
impl Sync for LauncherConfig
impl Unpin for LauncherConfig
impl UnsafeUnpin for LauncherConfig
impl UnwindSafe for LauncherConfig
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