pub enum Cwd {
PluginRoot,
Relative(RelativePath),
RootAnchored(String),
DataAnchored(String),
}Expand description
The working directory of a stdio server, in the three permitted forms of
§7.2.1 — plus the default. Any other shape never becomes a Cwd.
Variants§
PluginRoot
cwd omitted, or exactly ${PLUGIN_ROOT}: the plugin root.
Relative(RelativePath)
A plugin-relative path beginning with ./.
RootAnchored(String)
${PLUGIN_ROOT}/subpath, the subpath lexically contained.
DataAnchored(String)
Exactly ${PLUGIN_DATA}, or ${PLUGIN_DATA}/subpath with the
subpath lexically contained in the data directory.
Trait Implementations§
impl Eq for Cwd
impl StructuralPartialEq for Cwd
Auto Trait Implementations§
impl Freeze for Cwd
impl RefUnwindSafe for Cwd
impl Send for Cwd
impl Sync for Cwd
impl Unpin for Cwd
impl UnsafeUnpin for Cwd
impl UnwindSafe for Cwd
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.