mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-22 15:21:04 +00:00
21 lines
288 B
Rust
21 lines
288 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Clone, Copy, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
|
|
pub enum Source {
|
|
#[default]
|
|
Unknown,
|
|
|
|
Key,
|
|
Ind,
|
|
|
|
Emit,
|
|
EmitInd,
|
|
|
|
Relay,
|
|
RelayInd,
|
|
}
|
|
|
|
impl Source {
|
|
#[inline]
|
|
pub fn is_key(self) -> bool { self == Self::Key }
|
|
}
|