pub struct PeerCandidate<'a> {
pub peer_id: &'a PeerID,
pub remote_endpoint: &'a Endpoint,
pub negotiated_protocols: &'a [ProtocolID],
}Expand description
A peer that has completed the handshake but has not joined the pool yet.
Fields§
§peer_id: &'a PeerID§remote_endpoint: &'a Endpoint§negotiated_protocols: &'a [ProtocolID]Protocols supported by both sides.
Auto Trait Implementations§
impl<'a> Freeze for PeerCandidate<'a>
impl<'a> RefUnwindSafe for PeerCandidate<'a>
impl<'a> Send for PeerCandidate<'a>
impl<'a> Sync for PeerCandidate<'a>
impl<'a> Unpin for PeerCandidate<'a>
impl<'a> UnsafeUnpin for PeerCandidate<'a>
impl<'a> UnwindSafe for PeerCandidate<'a>
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