logo
pub fn build_query_response(
    id: u16,
    peer_id: PeerId,
    addresses: impl ExactSizeIterator<Item = Multiaddr>,
    ttl: Duration
) -> Vec<Vec<u8, Global>, Global>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator
Expand description

Builds the response to an address discovery DNS query.

If there are more than 2^16-1 addresses, ignores the rest.