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
|
/// https://geminiprotocol.net/docs/protocol-specification.gmi#status-codes
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum Status {
|
pub enum Status {
|
||||||
// 10 | 11
|
// Input
|
||||||
Input,
|
Input = 10,
|
||||||
SensitiveInput,
|
SensitiveInput = 11,
|
||||||
// 20
|
// Success
|
||||||
Success,
|
Success = 20,
|
||||||
// 30 | 31
|
// Redirect
|
||||||
Redirect,
|
Redirect = 30,
|
||||||
PermanentRedirect,
|
PermanentRedirect = 31,
|
||||||
} // @TODO
|
} // @TODO
|
||||||
|
|
||||||
impl Status {
|
impl Status {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue