Struct solana_gossip::cluster_info::Node [−][src]
pub struct Node { pub info: ContactInfo, pub sockets: Sockets, }
Fields
info: ContactInfo
sockets: Sockets
Implementations
pub fn new_single_bind(
pubkey: &Pubkey,
gossip_addr: &SocketAddr,
port_range: PortRange,
bind_ip_addr: IpAddr
) -> Self
pub fn new_with_external_ip(
pubkey: &Pubkey,
gossip_addr: &SocketAddr,
port_range: PortRange,
bind_ip_addr: IpAddr
) -> Node
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Node
impl UnwindSafe for Node
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Wrap the input message T
in a tonic::Request
type Output = T
type Output = T
Should always be Self