pub enum RoutingTableUpdateMode {
Manual,
Automatic,
}
Expand description
Routing table update mode.
Variants§
Manual
Don’t insert discovered peers automatically to the routing tables but
allow user to do that by calling KademliaHandle::add_known_peer()
.
Automatic
Automatically add all discovered peers to routing tables.
Trait Implementations§
source§impl Clone for RoutingTableUpdateMode
impl Clone for RoutingTableUpdateMode
source§fn clone(&self) -> RoutingTableUpdateMode
fn clone(&self) -> RoutingTableUpdateMode
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 RoutingTableUpdateMode
impl Debug for RoutingTableUpdateMode
impl Copy for RoutingTableUpdateMode
Auto Trait Implementations§
impl Freeze for RoutingTableUpdateMode
impl RefUnwindSafe for RoutingTableUpdateMode
impl Send for RoutingTableUpdateMode
impl Sync for RoutingTableUpdateMode
impl Unpin for RoutingTableUpdateMode
impl UnwindSafe for RoutingTableUpdateMode
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)