Skip to main content

Forwarding

Trait Forwarding 

Source
pub trait Forwarding<'a> {
    // Required methods
    fn workspace(&self, folder: &Path) -> Option<PathBuf>;
    fn spawn(&self, words: &[String], root: &Path) -> Box<dyn Forward + 'a>;
}
Expand description

Looks up workspaces and starts forwarded servers.

Required Methods§

Source

fn workspace(&self, folder: &Path) -> Option<PathBuf>

The root of the cargo workspace folder is in, none outside one. Paths of one folder compare equal.

Source

fn spawn(&self, words: &[String], root: &Path) -> Box<dyn Forward + 'a>

A forwarded server: words run in root.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'a> Forwarding<'a> for Processes