pub enum WelcomeError {
Malformed,
Version {
version: u16,
offered: VersionRange,
},
Host,
HostId,
MissingCommunity,
Binding,
Pair(ValidityError),
Delegation,
ChainIncomplete,
Proof(SessionProofError),
Challenge,
Refused,
}Expand description
Why a session.welcome was rejected (§4.3, §4.5, §6.2).
Variants§
Malformed
The welcome body is not a valid session.welcome.
Version
The negotiated version is outside the range this client offered.
Host
The host key or id is not the expected host.
HostId
The welcome’s host_id does not derive from its host_public_key.
MissingCommunity
A community was expected but the welcome carries no descriptor, delegation or proof naming it.
Binding
The welcome binds the connection to another community.
Pair(ValidityError)
The descriptor/delegation pair is not valid (§4.3).
Delegation
The delegation does not name this host or lacks OPERATE (§4.2).
ChainIncomplete
The rotation chain is longer than the client knows; fetch community.rotations.
Proof(SessionProofError)
The host session proof failed (§4.5).
Challenge
The proof’s challenge differs from the welcome’s.
Refused
The host answered session.hello with an error (for example UNSUPPORTED_VERSION).
Trait Implementations§
Source§impl Clone for WelcomeError
impl Clone for WelcomeError
Source§fn clone(&self) -> WelcomeError
fn clone(&self) -> WelcomeError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WelcomeError
impl Debug for WelcomeError
Source§impl Display for WelcomeError
impl Display for WelcomeError
impl Eq for WelcomeError
Source§impl Error for WelcomeError
impl Error for WelcomeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()