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(SocketAddrV4, bool)
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.
Trait Implementations§
impl Eq for P2P
impl StructuralPartialEq for P2P
Auto Trait Implementations§
impl Freeze for P2P
impl RefUnwindSafe for P2P
impl Send for P2P
impl Sync for P2P
impl Unpin for P2P
impl UnwindSafe for P2P
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