rslocal 0.1.0

A tunnel to localhost built in Rust
Documentation
use tokio::sync::mpsc::Sender;

#[derive(Debug, Clone)]
pub struct Payload {
    pub tx: Sender<Connection>,
    pub entrypoint: String,
}

#[derive(Debug, Clone)]
pub struct Connection {
    pub(crate) id: String,
    pub(crate) tx: Sender<XData>,
}

#[derive(Debug, Clone)]
pub enum XData {
    TX(Sender<Vec<u8>>),
    Data(Vec<u8>),
}