mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
hold code in status enum
This commit is contained in:
parent
ac17a48144
commit
d34d24588f
1 changed files with 8 additions and 8 deletions
|
|
@ -6,14 +6,14 @@ use glib::GString;
|
|||
/// https://geminiprotocol.net/docs/protocol-specification.gmi#status-codes
|
||||
#[derive(Debug)]
|
||||
pub enum Status {
|
||||
// 10 | 11
|
||||
Input,
|
||||
SensitiveInput,
|
||||
// 20
|
||||
Success,
|
||||
// 30 | 31
|
||||
Redirect,
|
||||
PermanentRedirect,
|
||||
// Input
|
||||
Input = 10,
|
||||
SensitiveInput = 11,
|
||||
// Success
|
||||
Success = 20,
|
||||
// Redirect
|
||||
Redirect = 30,
|
||||
PermanentRedirect = 31,
|
||||
} // @TODO
|
||||
|
||||
impl Status {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue