pub struct PeerBehaviorEntry {
pub party_id: String,
pub behavior_tag: String,
pub drop_round: Option<u8>,
}Expand description
One [[peer_behavior]] entry.
Fields§
§party_id: String§behavior_tag: StringTag string: "honest", "byzantine-drop", etc. Validated
against PeerBehavior::from_tag during parse.
drop_round: Option<u8>Optional: which round a byzantine-drop peer drops in.
Trait Implementations§
Source§impl Clone for PeerBehaviorEntry
impl Clone for PeerBehaviorEntry
Source§fn clone(&self) -> PeerBehaviorEntry
fn clone(&self) -> PeerBehaviorEntry
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 PeerBehaviorEntry
impl Debug for PeerBehaviorEntry
Source§impl<'de> Deserialize<'de> for PeerBehaviorEntry
impl<'de> Deserialize<'de> for PeerBehaviorEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PeerBehaviorEntry
Source§impl PartialEq for PeerBehaviorEntry
impl PartialEq for PeerBehaviorEntry
Source§fn eq(&self, other: &PeerBehaviorEntry) -> bool
fn eq(&self, other: &PeerBehaviorEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PeerBehaviorEntry
Auto Trait Implementations§
impl Freeze for PeerBehaviorEntry
impl RefUnwindSafe for PeerBehaviorEntry
impl Send for PeerBehaviorEntry
impl Sync for PeerBehaviorEntry
impl Unpin for PeerBehaviorEntry
impl UnsafeUnpin for PeerBehaviorEntry
impl UnwindSafe for PeerBehaviorEntry
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