add response for protocol status
This commit is contained in:
parent
4a230a08c2
commit
232fe6b6e2
3 changed files with 41 additions and 0 deletions
|
|
@ -53,6 +53,12 @@ fn increment_counter(amount: u64) {
|
|||
COUNTER.fetch_add(amount, std::sync::atomic::Ordering::Relaxed);
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub enum ProtocolStatus {
|
||||
Enabled(&'static str),
|
||||
Disabled(&'static str),
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub enum Protocol {
|
||||
Text,
|
||||
|
|
@ -72,6 +78,7 @@ pub enum Command {
|
|||
#[derive(Debug, PartialEq)]
|
||||
pub enum Response {
|
||||
Help,
|
||||
Protocols(Vec<ProtocolStatus>),
|
||||
Size(Coordinate, Coordinate),
|
||||
GetPixel(Coordinate, Coordinate, [u8; 3]),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue