Struct xstack_kad::Recursively
source · pub struct Recursively<'a> { /* private fields */ }Expand description
The context data of recursive routing algorithms.
Implementations§
source§impl<'a> Recursively<'a>
impl<'a> Recursively<'a>
sourcepub fn new(
label: Option<&'a str>,
key: &'a Key,
const_k: NonZeroUsize,
concurrency: NonZeroUsize,
seeds: Vec<PeerId>,
) -> Self
pub fn new( label: Option<&'a str>, key: &'a Key, const_k: NonZeroUsize, concurrency: NonZeroUsize, seeds: Vec<PeerId>, ) -> Self
Create a new recursive routing context data with provides seeds.
§parameters
concurrency, the maximum concurrency tasks that this route process can starts.
Auto Trait Implementations§
impl<'a> Freeze for Recursively<'a>
impl<'a> RefUnwindSafe for Recursively<'a>
impl<'a> Send for Recursively<'a>
impl<'a> Sync for Recursively<'a>
impl<'a> Unpin for Recursively<'a>
impl<'a> UnwindSafe for Recursively<'a>
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