summaryrefslogtreecommitdiff
path: root/src/daemon.rs
blob: c88912fc4f07ac7f519cb9bd2627f61285243ecf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::net::TcpListener;
use thiserror::Error;

#[derive(Debug, Error)]
pub enum DaemonError {
    #[error("{0}")]
    Io(#[from] std::io::Error),
}

pub fn daemon() -> Result<(), DaemonError> {
    let listener = TcpListener::bind("0.0.0.0")?; // TODO

    Ok(())
}