pub struct PathState {
pub path_id: usize,
pub nodes: Vec<DHTNode>,
pub queried: HashSet<PeerId>,
pub to_query: VecDeque<DHTNode>,
pub completed: bool,
pub results: Vec<DHTNode>,
}
Expand description
State for individual path in disjoint lookup
Fields§
§path_id: usize
Path ID
nodes: Vec<DHTNode>
Nodes in this path
queried: HashSet<PeerId>
Nodes queried in this path
to_query: VecDeque<DHTNode>
Nodes to query next
completed: bool
Path completion status
results: Vec<DHTNode>
Results found by this path
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathState
impl RefUnwindSafe for PathState
impl Send for PathState
impl Sync for PathState
impl Unpin for PathState
impl UnwindSafe for PathState
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