pub struct HandshakeParams<'a> {
pub own_id: &'a PeerID,
pub is_inbound: bool,
pub config_version: &'a Version,
pub protocols: &'a HashMap<ProtocolID, ProtocolMeta>,
pub timeout_secs: u64,
pub verified_peer_id: Option<&'a PeerID>,
}Expand description
Non-IO inputs to the handshake.
Fields§
§own_id: &'a PeerID§is_inbound: bool§config_version: &'a Version§protocols: &'a HashMap<ProtocolID, ProtocolMeta>Local protocols with metadata (version + kind). Drives both version negotiation and the mandatory-subset check.
timeout_secs: u64§verified_peer_id: Option<&'a PeerID>PeerID derived from the secure transport (TLS cert), if any.
When Some, the handshake asserts the peer’s claimed vermsg.peer_id
matches it - so a peer can’t claim an identity it can’t prove.
Auto Trait Implementations§
impl<'a> Freeze for HandshakeParams<'a>
impl<'a> RefUnwindSafe for HandshakeParams<'a>
impl<'a> Send for HandshakeParams<'a>
impl<'a> Sync for HandshakeParams<'a>
impl<'a> Unpin for HandshakeParams<'a>
impl<'a> UnsafeUnpin for HandshakeParams<'a>
impl<'a> UnwindSafe for HandshakeParams<'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