mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-22 14:57:56 +01:00
Cleaning up code
This commit is contained in:
parent
7015fd755a
commit
c5852d50fb
@ -8,7 +8,6 @@ use crate::resources::state::State;
|
|||||||
|
|
||||||
mod shelly;
|
mod shelly;
|
||||||
|
|
||||||
|
|
||||||
pub trait Actor {
|
pub trait Actor {
|
||||||
fn apply(&mut self, state: State) -> BoxFuture<'static, ()>;
|
fn apply(&mut self, state: State) -> BoxFuture<'static, ()>;
|
||||||
}
|
}
|
||||||
|
@ -22,9 +22,6 @@ pub fn read(path: &Path) -> Result<Config> {
|
|||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
pub struct Config {
|
pub struct Config {
|
||||||
/// A list of address/port pairs to listen on.
|
/// A list of address/port pairs to listen on.
|
||||||
// TODO: This should really be a variant type; that is something that can figure out itself if
|
|
||||||
// it contains enough information to open a socket (i.e. it checks if it's a valid path (=>
|
|
||||||
// Unix socket) or IPv4/v6 address)
|
|
||||||
pub listens: Vec<Listen>,
|
pub listens: Vec<Listen>,
|
||||||
|
|
||||||
/// Machine descriptions to load
|
/// Machine descriptions to load
|
||||||
|
Loading…
Reference in New Issue
Block a user