Struct libp2p::kad::QueryMut [−][src]
pub struct QueryMut<'a> { /* fields omitted */ }A mutable reference to a running query.
Implementations
impl<'a> QueryMut<'a>[src]
impl<'a> QueryMut<'a>[src]pub fn id(&self) -> QueryId[src]
pub fn info(&self) -> &QueryInfo[src]
Gets information about the type and state of the query.
pub fn stats(&self) -> &QueryStats[src]
Gets execution statistics about the query.
For a multi-phase query such as put_record, these are the
statistics of the current phase.
pub fn finish(&mut self)[src]
Finishes the query asap, without waiting for the regular termination conditions.