pub struct Registar<M = ()> { /* private fields */ }Expand description
The Registar manages immutable runtime service registrations.
Implementations§
Source§impl<M> Registar<M>
impl<M> Registar<M>
Sourcepub fn give_form(&self) -> ServiceRegistrationForm<M>
pub fn give_form(&self) -> ServiceRegistrationForm<M>
Returns a capability to register one service.
Sourcepub async fn services(&self) -> Vec<RegisteredService<M>>where
M: Clone,
pub async fn services(&self) -> Vec<RegisteredService<M>>where
M: Clone,
Returns a deterministic, side-effect-free snapshot of all services.
Results are ordered by protocol, then final socket address, never by insertion or hash-map iteration order.
Sourcepub async fn services_matching<F>(
&self,
predicate: F,
) -> Vec<RegisteredService<M>>
pub async fn services_matching<F>( &self, predicate: F, ) -> Vec<RegisteredService<M>>
Returns a deterministic, side-effect-free metadata query result.
Trait Implementations§
Auto Trait Implementations§
impl<M = ()> !RefUnwindSafe for Registar<M>
impl<M = ()> !UnwindSafe for Registar<M>
impl<M> Freeze for Registar<M>
impl<M> Send for Registar<M>where
M: Send,
impl<M> Sync for Registar<M>where
M: Send,
impl<M> Unpin for Registar<M>
impl<M> UnsafeUnpin for Registar<M>
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