#[non_exhaustive]pub struct StdioServer {
pub command: Command,
pub args: Vec<Template>,
pub env: Vec<(String, Template)>,
pub cwd: Cwd,
}Expand description
A stdio server: how to launch the subprocess (§7.2.1).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.command: CommandThe single executable token to launch.
args: Vec<Template>Arguments, each subject to placeholder expansion (§9.2).
env: Vec<(String, Template)>Environment overlay, values subject to placeholder expansion (§9.2).
Names PLUGIN_ROOT and PLUGIN_DATA are reserved and already
rejected at parse time.
cwd: CwdWorking directory; defaults to the plugin root when omitted.
Implementations§
Source§impl StdioServer
impl StdioServer
Sourcepub fn launch_plan(&self, anchors: &Anchors) -> LaunchPlan
pub fn launch_plan(&self, anchors: &Anchors) -> LaunchPlan
Resolve this server against the client’s anchors into a launch plan.
All placeholder expansion (§9.2) and path resolution (§7.2.1) happens here; the resulting plan contains no placeholders and no relative paths.
Trait Implementations§
Source§impl Clone for StdioServer
impl Clone for StdioServer
Source§impl Debug for StdioServer
impl Debug for StdioServer
Source§impl PartialEq for StdioServer
impl PartialEq for StdioServer
impl StructuralPartialEq for StdioServer
Auto Trait Implementations§
impl Freeze for StdioServer
impl RefUnwindSafe for StdioServer
impl Send for StdioServer
impl Sync for StdioServer
impl Unpin for StdioServer
impl UnsafeUnpin for StdioServer
impl UnwindSafe for StdioServer
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