mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
drop page progress_fraction, use status enum instead
This commit is contained in:
parent
5cb5f02308
commit
85629e9dcb
2 changed files with 12 additions and 18 deletions
|
|
@ -10,9 +10,13 @@ pub enum Mime {
|
|||
// Internal page status (not related with gemini status code)
|
||||
// Useful for widgets composition
|
||||
pub enum Status {
|
||||
Connect,
|
||||
Failure,
|
||||
Prepare,
|
||||
Redirect,
|
||||
Reload,
|
||||
Request,
|
||||
Response,
|
||||
Success,
|
||||
}
|
||||
|
||||
|
|
@ -24,10 +28,6 @@ pub struct Meta {
|
|||
// Enums
|
||||
pub mime: Option<Mime>,
|
||||
pub status: Option<Status>,
|
||||
// Useful to compose other widgets
|
||||
// (e.g. navigation bar listen for this value update)
|
||||
// @TODO deprecated, calculate by Status enum
|
||||
pub progress_fraction: f32,
|
||||
}
|
||||
|
||||
impl Meta {
|
||||
|
|
@ -37,7 +37,6 @@ impl Meta {
|
|||
description: None,
|
||||
mime: None,
|
||||
status: None,
|
||||
progress_fraction: 0.0,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue