Struct libp2p_kad::GetProvidersOk [−][src]
pub struct GetProvidersOk { pub key: Key, pub providers: HashSet<PeerId>, pub closest_peers: Vec<PeerId>, }
Expand description
The successful result of Kademlia::get_providers
.
Fields
key: Key
providers: HashSet<PeerId>
closest_peers: Vec<PeerId>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GetProvidersOk
impl Send for GetProvidersOk
impl Sync for GetProvidersOk
impl Unpin for GetProvidersOk
impl UnwindSafe for GetProvidersOk
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V