allow calling Protocols from textparser
This commit is contained in:
parent
823f4a306a
commit
6dc11526d8
1 changed files with 2 additions and 0 deletions
|
|
@ -117,6 +117,8 @@ impl<R: AsyncBufRead + AsyncBufReadExt + std::marker::Unpin> Parser<R> for TextP
|
|||
if reader.read_line(&mut line).await.is_ok() {
|
||||
if line.starts_with("HELP") {
|
||||
return Ok(Command::Help);
|
||||
} else if line.starts_with("PROTOCOLS") {
|
||||
return Ok(Command::Protocols);
|
||||
} else if line.starts_with("SIZE") {
|
||||
return Ok(Command::Size(self.canvas));
|
||||
} else if line.starts_with("PX ") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue