Struct solana_gossip::cluster_info::Node
source · pub struct Node {
pub info: ContactInfo,
pub sockets: Sockets,
}
Fields§
§info: ContactInfo
§sockets: Sockets
Implementations§
source§impl Node
impl Node
pub fn new_localhost() -> Self
pub fn new_localhost_with_pubkey(pubkey: &Pubkey) -> Self
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, overwrite_tpu_addr: Option<SocketAddr> ) -> Node
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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