Struct PeerDetails
pub struct PeerDetails {
pub counterparty_node_id: PublicKey,
pub socket_address: Option<SocketAddress>,
pub init_features: Features<InitContext>,
pub is_inbound_connection: bool,
}
Expand description
Details of a connected peer as returned by PeerManager::list_peers
.
Fields§
§counterparty_node_id: PublicKey
The node id of the peer.
For outbound connections, this PublicKey
will be the same as the their_node_id
parameter
passed in to PeerManager::new_outbound_connection
.
socket_address: Option<SocketAddress>
The socket address the peer provided in the initial handshake.
Will only be Some
if an address had been previously provided to
PeerManager::new_outbound_connection
or PeerManager::new_inbound_connection
.
init_features: Features<InitContext>
The features the peer provided in the initial handshake.
is_inbound_connection: bool
Indicates the direction of the peer connection.
Will be true
for inbound connections, and false
for outbound connections.
Auto Trait Implementations§
impl Freeze for PeerDetails
impl RefUnwindSafe for PeerDetails
impl Send for PeerDetails
impl Sync for PeerDetails
impl Unpin for PeerDetails
impl UnwindSafe for PeerDetails
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request