tinyudp 0.6.0

A tiny abstraction for UDP.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("failed to bind socket: {0}")]
    BindFailed(#[source] std::io::Error),

    #[error("failed to send message: {0}")]
    SendFailed(#[source] std::io::Error),

    #[error("failed to receive message: {0}")]
    ReceiveFailed(#[source] std::io::Error),

    #[error("timeout reached while waiting for response")]
    TimeoutReached,
}