#[non_exhaustive]pub enum StdinSource {
NoProgram,
DashS,
DashOperand,
DeviceOperand,
ParentTraversal,
SpecialFile,
}Expand description
Why a shell or interpreter would read its program from standard input, which carries the LSP frames mcpls writes to the server.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoProgram
No script, module or other program source is given.
DashS
-s, alone or inside a cluster.
DashOperand
The script operand is -.
DeviceOperand
The script operand lies under /dev/ or /proc/, where a path can
name the process’s standard input.
ParentTraversal
The script operand has a .. component, which can reach a device path.
SpecialFile
The script operand resolves, where the server starts, to a device, FIFO or socket, so it may be an alias of a device path.
Trait Implementations§
Source§impl Clone for StdinSource
impl Clone for StdinSource
impl Copy for StdinSource
Source§impl Debug for StdinSource
impl Debug for StdinSource
Source§impl Display for StdinSource
impl Display for StdinSource
impl Eq for StdinSource
Source§impl PartialEq for StdinSource
impl PartialEq for StdinSource
impl StructuralPartialEq for StdinSource
Auto Trait Implementations§
impl Freeze for StdinSource
impl RefUnwindSafe for StdinSource
impl Send for StdinSource
impl Sync for StdinSource
impl Unpin for StdinSource
impl UnsafeUnpin for StdinSource
impl UnwindSafe for StdinSource
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.