Struct libp2p_rendezvous::Cookie
source · pub struct Cookie { /* private fields */ }
Implementations§
source§impl Cookie
impl Cookie
sourcepub fn for_namespace(namespace: Namespace) -> Self
pub fn for_namespace(namespace: Namespace) -> Self
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() -> Self
pub fn for_all_namespaces() -> Self
Construct a new Cookie
for a DISCOVER request that inquires about all namespaces.