Type Alias jormungandr::topology::Peer
source · pub type Peer = Gossip;
Expand description
This represents a peer and its public key used for identification in the topology.
Aliased Type§
struct Peer(Gossip);
Fields§
§0: Gossip
Implementations§
Trait Implementations§
source§impl Deserialize for Gossip
impl Deserialize for Gossip
source§impl PartialEq<Gossip> for Gossip
impl PartialEq<Gossip> for Gossip
source§impl Serialize for Gossip
impl Serialize for Gossip
fn serialize<W: Write>(&self, codec: &mut Codec<W>) -> Result<(), WriteError>
source§fn serialized_size(&self) -> usize
fn serialized_size(&self) -> usize
Default implementation, not efficient, not recommended to use it
source§fn serialize_as_vec(&self) -> Result<Vec<u8, Global>, WriteError>
fn serialize_as_vec(&self) -> Result<Vec<u8, Global>, WriteError>
Convenience method to serialize into a byte vector.