Struct bitcoind::ConnectParams
source · pub struct ConnectParams {
pub cookie_file: PathBuf,
pub rpc_socket: SocketAddrV4,
pub p2p_socket: Option<SocketAddrV4>,
pub zmq_pub_raw_block_socket: Option<SocketAddrV4>,
pub zmq_pub_raw_tx_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
zmq_pub_raw_block_socket: Option<SocketAddrV4>
zmq pub raw block connection url
zmq_pub_raw_tx_socket: Option<SocketAddrV4>
zmq pub raw tx connection Url
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 moreAuto Trait Implementations§
impl Freeze for ConnectParams
impl RefUnwindSafe for ConnectParams
impl Send for ConnectParams
impl Sync for ConnectParams
impl Unpin for ConnectParams
impl UnwindSafe for ConnectParams
Blanket Implementations§
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more