Struct solana_client::rpc_response::RpcContactInfo
source · [−]pub struct RpcContactInfo {
pub pubkey: String,
pub gossip: Option<SocketAddr>,
pub tpu: Option<SocketAddr>,
pub rpc: Option<SocketAddr>,
pub version: Option<String>,
pub feature_set: Option<u32>,
pub shred_version: Option<u16>,
}
Fields
pubkey: String
Pubkey of the node as a base-58 string
gossip: Option<SocketAddr>
Gossip port
tpu: Option<SocketAddr>
Tpu port
rpc: Option<SocketAddr>
JSON RPC port
version: Option<String>
Software version
feature_set: Option<u32>
First 4 bytes of the FeatureSet identifier
shred_version: Option<u16>
Shred version
Trait Implementations
sourceimpl Clone for RpcContactInfo
impl Clone for RpcContactInfo
sourcefn clone(&self) -> RpcContactInfo
fn clone(&self) -> RpcContactInfo
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RpcContactInfo
impl Debug for RpcContactInfo
sourceimpl<'de> Deserialize<'de> for RpcContactInfo
impl<'de> Deserialize<'de> for RpcContactInfo
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for RpcContactInfo
impl Serialize for RpcContactInfo
Auto Trait Implementations
impl RefUnwindSafe for RpcContactInfo
impl Send for RpcContactInfo
impl Sync for RpcContactInfo
impl Unpin for RpcContactInfo
impl UnwindSafe for RpcContactInfo
Blanket Implementations
impl<T> AbiEnumVisitor for Twhere
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for Twhere
T: Serialize + AbiExample + ?Sized,
default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiEnumVisitor for Twhere
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for Twhere
T: Serialize + ?Sized,
default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more