pub enum SessionProofError {
Signed(SignedError),
HostId,
Nonce,
EpochPresence,
MissingPair,
PairMismatch,
}Expand description
A HostSessionProof is not acceptable to the client (specification §4.5).
Variants§
Signed(SignedError)
The proof does not verify under the host key, or does not decode.
HostId
host_id does not derive from the host key.
Nonce
client_nonce is not the client’s fresh nonce.
EpochPresence
community_id and delegation_epoch are not both some or both none.
MissingPair
A community is named but no valid pair was presented.
PairMismatch
The valid pair is for another community, host or epoch.
Trait Implementations§
Source§impl Clone for SessionProofError
impl Clone for SessionProofError
Source§fn clone(&self) -> SessionProofError
fn clone(&self) -> SessionProofError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SessionProofError
Source§impl Debug for SessionProofError
impl Debug for SessionProofError
Source§impl Display for SessionProofError
impl Display for SessionProofError
impl Eq for SessionProofError
Source§impl Error for SessionProofError
impl Error for SessionProofError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<SessionProofError> for WelcomeError
impl From<SessionProofError> for WelcomeError
Source§fn from(source: SessionProofError) -> Self
fn from(source: SessionProofError) -> Self
Converts to this type from the input type.
Source§impl From<SignedError> for SessionProofError
impl From<SignedError> for SessionProofError
Source§fn from(source: SignedError) -> Self
fn from(source: SignedError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SessionProofError
impl PartialEq for SessionProofError
impl StructuralPartialEq for SessionProofError
Auto Trait Implementations§
impl Freeze for SessionProofError
impl RefUnwindSafe for SessionProofError
impl Send for SessionProofError
impl Sync for SessionProofError
impl Unpin for SessionProofError
impl UnsafeUnpin for SessionProofError
impl UnwindSafe for SessionProofError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more