pub enum BootstrapMode {
Single,
Set {
count: u64,
},
}
Available on crate feature
test-utils
only.Expand description
Variants how to bootstrap the swarm.
Variants§
Single
All peers join a single peer.
Set
First count
bootstrap peers are created and join each other,
then the remaining peers join the swarm by joining one of these first count
peers.
Trait Implementations§
Source§impl Clone for BootstrapMode
impl Clone for BootstrapMode
Source§fn clone(&self) -> BootstrapMode
fn clone(&self) -> BootstrapMode
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 moreSource§impl Debug for BootstrapMode
impl Debug for BootstrapMode
Source§impl Default for BootstrapMode
impl Default for BootstrapMode
Source§fn default() -> BootstrapMode
fn default() -> BootstrapMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BootstrapMode
impl<'de> Deserialize<'de> for BootstrapMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BootstrapMode
impl RefUnwindSafe for BootstrapMode
impl Send for BootstrapMode
impl Sync for BootstrapMode
impl Unpin for BootstrapMode
impl UnwindSafe for BootstrapMode
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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