adds log querying (#401)

* adds log querying

* Apply suggestions from code review

Co-authored-by: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com>

* formatting

Co-authored-by: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com>
This commit is contained in:
Keagan McClelland
2021-08-12 10:35:49 -06:00
committed by Aiden McClelland
parent f92db6fac8
commit 73526976a1
3 changed files with 68 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ pub enum ErrorKind {
ParseNetAddress = 41,
ParseSshKey = 42,
SoundError = 43,
ParseTimestamp = 44,
}
impl ErrorKind {
pub fn as_str(&self) -> &'static str {
@@ -97,6 +98,7 @@ impl ErrorKind {
ParseNetAddress => "Net Address Parsing Error",
ParseSshKey => "SSH Key Parsing Error",
SoundError => "Sound Interface Error",
ParseTimestamp => "Timestamp Parsing Error",
}
}
}