[−][src]Enum parsec::Malice
Type of malicious behaviour.
Variants
UnexpectedGenesis(EventHash)
Event carries a vote for Observation::Genesis
, but shouldn't.
Two or more votes with the same observation by the same creator.
MissingGenesis(EventHash)
Event should be carrying a vote for Observation::Genesis
, but doesn't
IncorrectGenesis(Box<PackedEvent<T, P>>)
Event carries a vote for Observation::Genesis
which doesn't correspond to what we know.
Fork(EventHash)
More than one events having this event as its self_parent.
InvalidAccusation(EventHash)
A node incorrectly accused other node of malice. Contains hash of the invalid Accusation event.
OtherParentBySameCreator(Box<PackedEvent<T, P>>)
Event's creator is the same to its other_parent's creator. The accusation contains the original event so other peers can verify the accusation directly.
SelfParentByDifferentCreator(Box<PackedEvent<T, P>>)
Event's creator is different to its self_parent's creator. The accusation contains the original event so other peers can verify the accusation directly.
InvalidRequest(Box<PackedEvent<T, P>>)
The event should be a request with other_parent as a requesting event specifying this peer, but isn't.
InvalidResponse(Box<PackedEvent<T, P>>)
The event should be a response to a request made to the peer, but isn't.
Detectable but unprovable malice. Relies on consensus.
A node is not reporting malice when it should.
Trait Implementations
impl<T: Clone + NetworkEvent, P: Clone + PublicId> Clone for Malice<T, P>
[src]
impl<T: Debug + NetworkEvent, P: Debug + PublicId> Debug for Malice<T, P>
[src]
impl<'de, T: NetworkEvent, P: PublicId> Deserialize<'de> for Malice<T, P>
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T: Eq + NetworkEvent, P: Eq + PublicId> Eq for Malice<T, P>
[src]
impl<T: Hash + NetworkEvent, P: Hash + PublicId> Hash for Malice<T, P>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: Ord + NetworkEvent, P: Ord + PublicId> Ord for Malice<T, P>
[src]
fn cmp(&self, other: &Malice<T, P>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<T: PartialEq + NetworkEvent, P: PartialEq + PublicId> PartialEq<Malice<T, P>> for Malice<T, P>
[src]
impl<T: PartialOrd + NetworkEvent, P: PartialOrd + PublicId> PartialOrd<Malice<T, P>> for Malice<T, P>
[src]
fn partial_cmp(&self, other: &Malice<T, P>) -> Option<Ordering>
[src]
fn lt(&self, other: &Malice<T, P>) -> bool
[src]
fn le(&self, other: &Malice<T, P>) -> bool
[src]
fn gt(&self, other: &Malice<T, P>) -> bool
[src]
fn ge(&self, other: &Malice<T, P>) -> bool
[src]
impl<T: NetworkEvent, P: PublicId> Serialize for Malice<T, P>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<T: NetworkEvent, P: PublicId> StructuralEq for Malice<T, P>
[src]
impl<T: NetworkEvent, P: PublicId> StructuralPartialEq for Malice<T, P>
[src]
Auto Trait Implementations
impl<T, P> RefUnwindSafe for Malice<T, P> where
P: RefUnwindSafe,
T: RefUnwindSafe,
<P as PublicId>::Signature: RefUnwindSafe,
P: RefUnwindSafe,
T: RefUnwindSafe,
<P as PublicId>::Signature: RefUnwindSafe,
impl<T, P> Send for Malice<T, P> where
P: Send,
T: Send,
<P as PublicId>::Signature: Send,
P: Send,
T: Send,
<P as PublicId>::Signature: Send,
impl<T, P> Sync for Malice<T, P> where
P: Sync,
T: Sync,
<P as PublicId>::Signature: Sync,
P: Sync,
T: Sync,
<P as PublicId>::Signature: Sync,
impl<T, P> Unpin for Malice<T, P>
impl<T, P> UnwindSafe for Malice<T, P> where
P: RefUnwindSafe + UnwindSafe,
T: UnwindSafe,
<P as PublicId>::Signature: UnwindSafe,
P: RefUnwindSafe + UnwindSafe,
T: UnwindSafe,
<P as PublicId>::Signature: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,