pub enum DiscoveryRejection {
UnauthorizedSource {
source: IdentityHash,
},
BlackholedIdentity {
identity: IdentityHash,
role: DiscoveryIdentityRole,
},
MalformedEnvelope(DiscoveryEnvelopeError),
Decryption(DiscoveryDecryptionError),
StampBelowCost {
value: StampValue,
required: StampCost,
},
MalformedAdvertisement(DiscoveryDecodeError),
InvalidReachableOn {
value: String,
},
}Variants§
Fields
BlackholedIdentity
MalformedEnvelope(DiscoveryEnvelopeError)
Decryption(DiscoveryDecryptionError)
StampBelowCost
MalformedAdvertisement(DiscoveryDecodeError)
InvalidReachableOn
Implementations§
Source§impl DiscoveryRejection
impl DiscoveryRejection
pub const fn kind(&self) -> DiscoveryRejectionKind
Trait Implementations§
Source§impl Debug for DiscoveryRejection
impl Debug for DiscoveryRejection
impl Eq for DiscoveryRejection
Source§impl PartialEq for DiscoveryRejection
impl PartialEq for DiscoveryRejection
impl StructuralPartialEq for DiscoveryRejection
Auto Trait Implementations§
impl Freeze for DiscoveryRejection
impl RefUnwindSafe for DiscoveryRejection
impl Send for DiscoveryRejection
impl Sync for DiscoveryRejection
impl Unpin for DiscoveryRejection
impl UnsafeUnpin for DiscoveryRejection
impl UnwindSafe for DiscoveryRejection
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