actrix-platform 0.5.3

Actrix platform core infrastructure components
Documentation
1
2
3
4
5
6
7
8
9
10
11
use serde::{Deserialize, Serialize};

/// Peer ID type
#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq, Serialize, Deserialize, Default)]
pub struct PeerId([u8; 16]);

impl PeerId {
    pub fn from_array(array: [u8; 16]) -> Self {
        Self(array)
    }
}