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