pub struct PilsIdentity {
pub peer: PeerId,
pub addresses_hash: HashCode,
pub addresses: Vec<String>,
pub hello_uri: String,
}Expand description
Идентификатор узла вместе с адресами, по сведениям PILS.
Fields§
§peer: PeerIdИдентификатор узла.
addresses_hash: HashCodeХэш набора адресов, из которого выведен ключ пира.
addresses: Vec<String>Адреса из HELLO, сопровождающего смену identity.
hello_uri: StringПодписанный HELLO этого узла с этим набором адресов в виде URI. Его можно передать другому узлу, чтобы тот смог подключиться.
Trait Implementations§
Source§impl Clone for PilsIdentity
impl Clone for PilsIdentity
Source§fn clone(&self) -> PilsIdentity
fn clone(&self) -> PilsIdentity
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 PilsIdentity
impl Debug for PilsIdentity
impl Eq for PilsIdentity
Source§impl PartialEq for PilsIdentity
impl PartialEq for PilsIdentity
impl StructuralPartialEq for PilsIdentity
Auto Trait Implementations§
impl Freeze for PilsIdentity
impl RefUnwindSafe for PilsIdentity
impl Send for PilsIdentity
impl Sync for PilsIdentity
impl Unpin for PilsIdentity
impl UnsafeUnpin for PilsIdentity
impl UnwindSafe for PilsIdentity
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