samod-core 0.12.0

the core library for the samod automerge-repo implementation
Documentation
1
2
3
4
5
6
7
8
9
use crate::{PeerId, network::PeerMetadata};

/// Information about a connected peer after successful handshake.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct PeerInfo {
    pub peer_id: PeerId,
    pub metadata: Option<PeerMetadata>,
    pub protocol_version: String,
}