wip: New crate opnsense-config

This commit is contained in:
Jean-Gabriel Gill-Couture
2024-10-13 08:48:56 -04:00
parent 6a5ebdbac7
commit 32cea6c3ff
10 changed files with 272 additions and 12 deletions

View File

@@ -0,0 +1,13 @@
use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("XML error: {0}")]
Xml(String),
#[error("SSH error: {0}")]
Ssh(#[from] russh::Error),
#[error("I/O error: {0}")]
Io(#[from] std::io::Error),
#[error("Config error: {0}")]
Config(String),
}