]>
code.octet-stream.net Git - m17rt/blob - m17app/src/error.rs
acbf397f28c1d4a6f247a59b6cf8e1c0833d0ab2
3 #[derive(Debug, Error, PartialEq, Eq, Clone)]
5 #[error("given callsign contains at least one character invalid in M17: {0}")]
6 InvalidCallsignCharacters(char),
8 #[error("given callsign is {0} characters long; maximum is 9")]
9 CallsignTooLong(usize),
11 #[error("error during soundcard initialisation")]
14 #[error("unable to locate sound card '{0}' - is it in use?")]
15 SoundcardNotFound(String
),
17 #[error("unable to set up RTL-SDR receiver")]
21 "provided packet payload is too large: provided {provided} bytes, capacity {capacity}"
23 PacketTooLarge
{ provided
: usize, capacity
: usize },