sockets 0.1.2

This is a general socket library for easy network communications with Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use tokio::sync::broadcast;

use super::datagram::Datagram;



pub type UdpEventRx = broadcast::Receiver<UdpEvent>;
pub type UdpEventTx = broadcast::Sender<UdpEvent>;

#[derive(Debug, Clone)]
pub enum UdpEvent {
    Data(Datagram),
    Close
}