semtech-udp 0.12.0

Semtech UDP provides serialization and deserialization of packets complying with the Semtech UDP protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use thiserror::Error;
use tokio::sync::mpsc;

#[derive(Error, Debug)]
pub enum Error {
    #[error("semtech udp error: {0}")]
    SemtechUdp(#[from] crate::packet::Error),
    #[error("tokio::mpsc send error: {0}")]
    SendError(#[from] mpsc::error::SendError<super::TxMessage>),
    #[error("Error binding: {io_error}")]
    Binding { io_error: std::io::Error },
    #[error("Error connecting: {io_error}")]
    Connection { io_error: std::io::Error },
    #[error("Join error: {0}")]
    Join(#[from] tokio::task::JoinError),
    #[error("Error sending downlink request to client: {0}")]
    SendingClient(#[from] mpsc::error::SendError<super::Event>),
}