pub struct Testnet {
pub bootstrap: Vec<String>,
pub nodes: Vec<Dht>,
}
Expand description
Create a testnet of Dht nodes to run tests against instead of the real mainline network.
Fields§
§bootstrap: Vec<String>
bootstrapping nodes for this testnet.
nodes: Vec<Dht>
all nodes in this testnet
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Testnet
impl RefUnwindSafe for Testnet
impl Send for Testnet
impl Sync for Testnet
impl Unpin for Testnet
impl UnwindSafe for Testnet
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