pub struct Entry {
pub key: [u8; 32],
pub addrs: Vec<PeerAddr>,
pub discovery_addrs: Vec<PeerAddr>,
pub protocols: Bloom,
}Expand description
An Entry represents a peer in the routing table.
Fields§
§key: [u8; 32]The unique key identifying the peer.
addrs: Vec<PeerAddr>Connection addresses for peer-to-peer data, ordered by priority.
discovery_addrs: Vec<PeerAddr>Discovery addresses for lookup and refresh, ordered by priority.
protocols: BloomBloom filter of protocols the peer claims to support. Treated as a hint; handshake is the source of truth.
Implementations§
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for Entry
impl<'__de, __Context> BorrowDecode<'__de, __Context> for Entry
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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