pub enum PeerBehavior {
Honest,
Drop,
Tamper,
Replay,
Malicious,
Collusion,
}Expand description
What a single party does to its outgoing messages.
Mirrors the type strings from the test vector schema in
TODO.roadmap/09-nist-evaluation-harness.md:
honest— pass messages through unchangedbyzantine-drop— silently drop all messages from one roundbyzantine-tamper— flip a bit in every payloadbyzantine-replay— duplicate the previous round’s messagesbyzantine-malicious— substitute a crafted payloadbyzantine-collusion— alias formalicious; the runner treats any group of N-1 colluding peers as N-1 individual malicious senders
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PeerBehavior
impl Clone for PeerBehavior
Source§fn clone(&self) -> PeerBehavior
fn clone(&self) -> PeerBehavior
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 PeerBehavior
Source§impl Debug for PeerBehavior
impl Debug for PeerBehavior
impl Eq for PeerBehavior
Source§impl PartialEq for PeerBehavior
impl PartialEq for PeerBehavior
Source§fn eq(&self, other: &PeerBehavior) -> bool
fn eq(&self, other: &PeerBehavior) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PeerBehavior
Auto Trait Implementations§
impl Freeze for PeerBehavior
impl RefUnwindSafe for PeerBehavior
impl Send for PeerBehavior
impl Sync for PeerBehavior
impl Unpin for PeerBehavior
impl UnsafeUnpin for PeerBehavior
impl UnwindSafe for PeerBehavior
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