Enum bitcoind::P2P[][src]

pub enum P2P {
    No,
    Yes,
    Connect(SocketAddrV4, bool),
}
Expand description

Enum to specify p2p settings

Variants

No

the node doesn’t open a p2p port and work in standalone mode

Yes

the node open a p2p port

Connect

The node open a p2p port and also connects to the url given as parameter, it’s handy to initialize this with BitcoinD::p2p_connect of another node. The bool parameter indicates if the node can accept connection too.

Tuple Fields of Connect

0: SocketAddrV41: bool

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.