Skip to main content

global

Function global 

Source
pub fn global() -> impl Deref<Target = EndpointRegistry> + 'static
Expand description

Get the global registry.

§Panics

Panics if the registry has not been initialized.

§Warning

Do NOT hold the returned guard across .await points. Clone needed data before awaiting.