pub struct ProtocolRegistry { /* private fields */ }Expand description
Hot-reloadable protocol registry
Implementations§
Source§impl ProtocolRegistry
impl ProtocolRegistry
pub fn new() -> Self
Sourcepub async fn get_manifest(
&self,
provider_id: &str,
) -> Result<Arc<ProtocolManifest>, ProtocolError>
pub async fn get_manifest( &self, provider_id: &str, ) -> Result<Arc<ProtocolManifest>, ProtocolError>
Get or load a protocol manifest
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ProtocolRegistry
impl !RefUnwindSafe for ProtocolRegistry
impl Send for ProtocolRegistry
impl Sync for ProtocolRegistry
impl Unpin for ProtocolRegistry
impl !UnwindSafe for ProtocolRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more