smpp 0.1.2

SMPP protocol support (client and server).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![cfg(test)]

use std::io;

pub struct FailingRead {}

impl FailingRead {
    fn error() -> io::Error {
        io::Error::from_raw_os_error(22)
    }
}

impl io::Read for FailingRead {
    fn read(&mut self, _buf: &mut [u8]) -> io::Result<usize> {
        Err(FailingRead::error())
    }
}