config: send server-side capabilities to config
This commit is contained in:
parent
c235f026f0
commit
27f30f8d28
5 changed files with 26 additions and 2 deletions
|
|
@ -13,6 +13,14 @@ use {
|
|||
std::time::Duration,
|
||||
};
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Eq, PartialEq)]
|
||||
#[serde(transparent)]
|
||||
pub struct ServerFeature(u16);
|
||||
|
||||
impl ServerFeature {
|
||||
pub const NONE: Self = Self(0);
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
pub enum ServerMessage {
|
||||
Configure {
|
||||
|
|
@ -62,6 +70,9 @@ pub enum ServerMessage {
|
|||
writable: bool,
|
||||
res: Result<(), String>,
|
||||
},
|
||||
Features {
|
||||
features: Vec<ServerFeature>,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue