pub struct Modular { /* private fields */ }
Implementations§
Source§impl Modular
impl Modular
pub fn register_module<S, Request>( &self, name: &str, svc: S, ) -> Result<(), RegistryError>
pub fn register_or_replace_module<S, Request>(&self, name: &str, svc: S)
pub fn remove_module(&self, name: &str)
pub fn get_module(&self, name: &str) -> Option<Module<Bytes, Bytes>>
pub fn subscribe<S, Err>( &self, name: &str, sink: S, ) -> Result<(), SubscribeError>
pub fn publish_event<E: Into<Bytes>>(&self, path: &str, event: E)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Modular
impl !RefUnwindSafe for Modular
impl Send for Modular
impl Sync for Modular
impl Unpin for Modular
impl !UnwindSafe for Modular
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