pub struct EndpointRegistry { /* private fields */ }Expand description
Global endpoint registry
Implementations§
Source§impl EndpointRegistry
impl EndpointRegistry
Sourcepub fn unregister(&self, id: EndpointId) -> Result<()>
pub fn unregister(&self, id: EndpointId) -> Result<()>
Unregister an endpoint
Sourcepub fn get(&self, id: EndpointId) -> Option<&'static Endpoint>
pub fn get(&self, id: EndpointId) -> Option<&'static Endpoint>
Get an endpoint reference