pub struct BehaviorSpec {
pub party_id: String,
pub behavior: PeerBehavior,
pub drop_round: Option<u8>,
}Expand description
One entry in a vector’s [[peer_behavior]] array: which party, and
what they do. drop_round selects the round a byzantine-drop
party goes silent in (None = drop in round 1, which is the
spec’s default example).
Fields§
§party_id: String§behavior: PeerBehavior§drop_round: Option<u8>Round to drop messages in (Drop behavior only). Defaults to 1.
Trait Implementations§
Source§impl Clone for BehaviorSpec
impl Clone for BehaviorSpec
Source§fn clone(&self) -> BehaviorSpec
fn clone(&self) -> BehaviorSpec
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 moreSource§impl Debug for BehaviorSpec
impl Debug for BehaviorSpec
impl Eq for BehaviorSpec
Source§impl PartialEq for BehaviorSpec
impl PartialEq for BehaviorSpec
Source§fn eq(&self, other: &BehaviorSpec) -> bool
fn eq(&self, other: &BehaviorSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BehaviorSpec
Auto Trait Implementations§
impl Freeze for BehaviorSpec
impl RefUnwindSafe for BehaviorSpec
impl Send for BehaviorSpec
impl Sync for BehaviorSpec
impl Unpin for BehaviorSpec
impl UnsafeUnpin for BehaviorSpec
impl UnwindSafe for BehaviorSpec
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