Struct libp2p::rendezvous::server::Registrations
source · pub struct Registrations { /* private fields */ }
Implementations§
source§impl Registrations
impl Registrations
pub fn with_config(config: Config) -> Registrations
pub fn add(
&mut self,
new_registration: NewRegistration
) -> Result<Registration, TtlOutOfRange>
pub fn remove(&mut self, namespace: Namespace, peer_id: PeerId)
pub fn get(
&mut self,
discover_namespace: Option<Namespace>,
cookie: Option<Cookie>,
limit: Option<u64>
) -> Result<(impl Iterator<Item = &Registration>, Cookie), CookieNamespaceMismatch>
Trait Implementations§
source§impl Default for Registrations
impl Default for Registrations
source§fn default() -> Registrations
fn default() -> Registrations
Returns the “default value” for a type. Read more