Struct libp2p::rendezvous::Cookie
source · pub struct Cookie { /* private fields */ }
Implementations§
source§impl Cookie
impl Cookie
sourcepub fn for_namespace(namespace: Namespace) -> Cookie
pub fn for_namespace(namespace: Namespace) -> Cookie
Construct a new Cookie
for a given namespace.
This cookie will only be valid for subsequent DISCOVER requests targeting the same namespace.
sourcepub fn for_all_namespaces() -> Cookie
pub fn for_all_namespaces() -> Cookie
Construct a new Cookie
for a DISCOVER request that inquires about all namespaces.