pub struct QueryResult {
pub query_id: QueryId,
pub cmd: Command,
pub stats: QueryStats,
pub peers: Vec<(PeerId, PeerState)>,
pub closest_replies: Vec<Arc<InResponse>>,
}Expand description
The result of a Query.
Fields§
§query_id: QueryIdThe ID of the query that finished.
cmd: CommandThe Command of the query.
stats: QueryStatsThe collected query statistics.
peers: Vec<(PeerId, PeerState)>The successfully contacted peers.
closest_replies: Vec<Arc<InResponse>>Closest replies to the target
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryResult
impl RefUnwindSafe for QueryResult
impl Send for QueryResult
impl Sync for QueryResult
impl Unpin for QueryResult
impl UnsafeUnpin for QueryResult
impl UnwindSafe for QueryResult
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