pub struct RejectCode(pub u32);Expand description
Why a handshake is refused: the code in the Handshake Type field.
Tuple Fields§
§0: u32Implementations§
Source§impl RejectCode
impl RejectCode
Sourcepub const ROGUE: Self
pub const ROGUE: Self
1004: the handshake data could not be interpreted; sent for malformed or inconsistent handshakes.
Sourcepub const BACKLOG: Self
pub const BACKLOG: Self
1005: the listener is full; sent when Config::max_connections is
reached.
Sourcepub const VERSION: Self
pub const VERSION: Self
1008: the peer’s version is not supported; sent for any handshake version other than 5.
Sourcepub const BADSECRET: Self
pub const BADSECRET: Self
1010: the passphrases differ; sent when the caller’s key material cannot be accepted with ours.
Sourcepub const UNSECURE: Self
pub const UNSECURE: Self
1011: only one side has a passphrase; sent when encryption is configured or required and the caller sends none, or the reverse.
Sourcepub const MESSAGE_API: Self
pub const MESSAGE_API: Self
1012: stream and message mode differ; sent when the caller asks for stream mode.
Sourcepub const CONGESTION: Self
pub const CONGESTION: Self
1013: the congestion controllers differ; sent for anything but live.
Sourcepub const FILTER: Self
pub const FILTER: Self
1014: packet filter settings differ; sent when the caller asks for a filter.