Struct bitcoind::ConnectParams
source · pub struct ConnectParams {
pub cookie_file: PathBuf,
pub rpc_socket: SocketAddrV4,
pub p2p_socket: Option<SocketAddrV4>,
}
Expand description
Contains all the information to connect to this node
Fields§
Path to the node cookie file, useful for other client to connect to the node
rpc_socket: SocketAddrV4
Url of the rpc of the node, useful for other client to connect to the node
p2p_socket: Option<SocketAddrV4>
p2p connection url, is some if the node started with p2p enabled
Implementations§
source§impl ConnectParams
impl ConnectParams
Return the user and password values from cookie file
Trait Implementations§
source§impl Clone for ConnectParams
impl Clone for ConnectParams
source§fn clone(&self) -> ConnectParams
fn clone(&self) -> ConnectParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more