kiss-tnc 0.1.0

A library to connect to KISS TNCs, such as Direwolf
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use thiserror::Error;

#[derive(Error, Debug)]
pub enum ReadError {
	#[error("Data received from TNC is not valid")]
	MalformedData,

	#[error("Stream error: {0}")]
	StreamError(std::io::Error),
}

impl From<std::io::Error> for ReadError {
	fn from(e: std::io::Error) -> Self {
		Self::StreamError(e)
	}
}