mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
reorganize page loading methods
This commit is contained in:
parent
8d3c4319c6
commit
0ff182f15d
4 changed files with 354 additions and 369 deletions
|
|
@ -9,7 +9,6 @@ pub enum Status {
|
|||
Input { time: DateTime },
|
||||
Loading { time: DateTime },
|
||||
New { time: DateTime },
|
||||
Redirect { time: DateTime },
|
||||
SessionRestore { time: DateTime },
|
||||
SessionRestored { time: DateTime },
|
||||
Success { time: DateTime },
|
||||
|
|
@ -40,10 +39,7 @@ impl Status {
|
|||
Gemini::Complete { .. } => Some(0.9),
|
||||
},
|
||||
},
|
||||
Self::Failure { .. }
|
||||
| Self::Success { .. }
|
||||
| Self::Redirect { .. }
|
||||
| Self::Input { .. } => Some(1.0),
|
||||
Self::Failure { .. } | Self::Success { .. } | Self::Input { .. } => Some(1.0),
|
||||
Self::New { .. } | Self::SessionRestored { .. } => None,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue