mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
15 lines
291 B
Rust
15 lines
291 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
use crate::error::Error;
|
|
|
|
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
|
|
pub enum FolderStage {
|
|
#[default]
|
|
Loading,
|
|
Loaded,
|
|
Failed(Error),
|
|
}
|
|
|
|
impl FolderStage {
|
|
pub fn is_loading(&self) -> bool { *self == Self::Loading }
|
|
}
|