#[non_exhaustive]pub enum DetectionSource {
Command(String),
EnvVar(String),
}Expand description
Evidence for a terminal kind or inferred color support, separate from multiplexer metadata.
Found in TerminalInfo::detected_via and ColorInfo::inferred_via. Environment sources
name a key; a value matched for identity is in TerminalInfo::identifiers. Command sources
name a successful probe; its output is in TerminalInfo::command_probes. The display form
prefixes these with env: or command:.
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.
Command(String)
The full diagnostic command string of a successful probe.
EnvVar(String)
The matching environment key, using the detector’s canonical spelling.
Trait Implementations§
Source§impl Clone for DetectionSource
impl Clone for DetectionSource
Source§impl Debug for DetectionSource
impl Debug for DetectionSource
Source§impl Display for DetectionSource
impl Display for DetectionSource
impl Eq for DetectionSource
Source§impl PartialEq for DetectionSource
impl PartialEq for DetectionSource
impl StructuralPartialEq for DetectionSource
Auto Trait Implementations§
impl Forget for DetectionSource
impl Freeze for DetectionSource
impl Move for DetectionSource
impl RefUnwindSafe for DetectionSource
impl Send for DetectionSource
impl Sync for DetectionSource
impl Unpin for DetectionSource
impl UnsafeUnpin for DetectionSource
impl UnwindSafe for DetectionSource
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