aurpc 0.3.1

Asynchronous UDP RPCs
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::io;

/// Creates an error with internal io::Error of the InvalidInput kind.
pub(crate) fn invalid_input(reason: &'static str) -> io::Error {
    io::Error::new(io::ErrorKind::InvalidInput, reason)
}

/// Creates an error with internal io::Error of the Other kind.
pub(crate) fn other(reason: &'static str) -> io::Error {
    io::Error::new(io::ErrorKind::Other, reason)
}