pub struct InMemoryWorkerRegistry { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Default for InMemoryWorkerRegistry
impl Default for InMemoryWorkerRegistry
Source§impl WorkerRegistry for InMemoryWorkerRegistry
impl WorkerRegistry for InMemoryWorkerRegistry
Source§async fn register(
&self,
worker_id: &str,
labels: &[String],
) -> Result<(), RegistryError>
async fn register( &self, worker_id: &str, labels: &[String], ) -> Result<(), RegistryError>
Register a worker with its capability labels.
Source§async fn heartbeat(&self, worker_id: &str) -> Result<(), RegistryError>
async fn heartbeat(&self, worker_id: &str) -> Result<(), RegistryError>
Record a heartbeat from a worker.
Source§async fn deregister(&self, worker_id: &str) -> Result<(), RegistryError>
async fn deregister(&self, worker_id: &str) -> Result<(), RegistryError>
Remove a worker from the registry.
Source§async fn list_workers(&self) -> Result<Vec<WorkerInfo>, RegistryError>
async fn list_workers(&self) -> Result<Vec<WorkerInfo>, RegistryError>
List all registered workers.
Auto Trait Implementations§
impl !Freeze for InMemoryWorkerRegistry
impl !RefUnwindSafe for InMemoryWorkerRegistry
impl Send for InMemoryWorkerRegistry
impl Sync for InMemoryWorkerRegistry
impl Unpin for InMemoryWorkerRegistry
impl UnsafeUnpin for InMemoryWorkerRegistry
impl UnwindSafe for InMemoryWorkerRegistry
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