Skip to main content

euv_ui/component/image/view/
enum.rs

1use super::*;
2
3/// How an image is currently doing.
4///
5/// The status is what lets the component show a placeholder while the
6/// picture is still on its way, and a readable message when it never
7/// arrives.
8#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
9pub enum EuvImageStatus {
10    /// The picture has not reported itself yet.
11    #[default]
12    Loading,
13    /// The picture is on screen.
14    Loaded,
15    /// The picture could not be loaded.
16    Failed,
17}