cat-dev 0.0.14

A library for interacting with the CAT-DEV hardware units distributed by Nintendo (i.e. a type of Wii-U DevKits).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Error types related to MION Control related data.

use miette::Diagnostic;
use thiserror::Error;

/// Errors specifically for MION Control Protocol related errors.
#[derive(Diagnostic, Error, Debug, PartialEq, Eq)]
pub enum MionControlProtocolError {
	/// Unknown Packet Type/Command.
	#[error(
		"Unknown Code aka Packet Type for MION CONTROL: `{0}` received from the network (this may mean your CAT-DEV is doing something we didn't expect)"
	)]
	#[diagnostic(code(cat_dev::net::parse::mion::control::unknown_packet_type))]
	UnknownCommand(u8),
}