mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-19 09:45:20 +00:00
transport_parameters::Error: Fail
This commit is contained in:
@@ -31,10 +31,13 @@ impl Default for TransportParameters {
|
||||
}}
|
||||
}
|
||||
|
||||
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
|
||||
#[derive(Debug, Copy, Clone, Eq, PartialEq, Fail)]
|
||||
pub enum Error {
|
||||
#[fail(display = "version negotiation was tampered with")]
|
||||
VersionNegotiation,
|
||||
#[fail(display = "parameter had illegal value")]
|
||||
IllegalValue,
|
||||
#[fail(display = "parameters were malformed")]
|
||||
Malformed,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user