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 StructuralEq for P2P
impl StructuralPartialEq for P2P
Auto Trait Implementations
impl RefUnwindSafe for P2P
impl Send for P2P
impl Sync for P2P
impl Unpin for P2P
impl UnwindSafe for P2P
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more