pub struct MxpRegistryClient { /* private fields */ }Expand description
MXP-backed registry client that speaks directly to the MXP Nexus registry service.
Implementations§
Source§impl MxpRegistryClient
impl MxpRegistryClient
Sourcepub fn connect(
registry_addr: impl ToSocketAddrs,
agent_endpoint: SocketAddr,
transport_config: Option<TransportConfig>,
) -> RegistryResult<Self>
pub fn connect( registry_addr: impl ToSocketAddrs, agent_endpoint: SocketAddr, transport_config: Option<TransportConfig>, ) -> RegistryResult<Self>
Establishes a registry client using the provided endpoint configuration.
§Errors
Returns RegistryError::Backend if the transport cannot be bound.
Trait Implementations§
Source§impl AgentRegistry for MxpRegistryClient
impl AgentRegistry for MxpRegistryClient
Source§fn register<'life0, 'life1, 'async_trait>(
&'life0 self,
manifest: &'life1 AgentManifest,
) -> Pin<Box<dyn Future<Output = RegistryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn register<'life0, 'life1, 'async_trait>(
&'life0 self,
manifest: &'life1 AgentManifest,
) -> Pin<Box<dyn Future<Output = RegistryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers an agent manifest with the mesh.
Source§fn heartbeat<'life0, 'life1, 'async_trait>(
&'life0 self,
manifest: &'life1 AgentManifest,
) -> Pin<Box<dyn Future<Output = RegistryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn heartbeat<'life0, 'life1, 'async_trait>(
&'life0 self,
manifest: &'life1 AgentManifest,
) -> Pin<Box<dyn Future<Output = RegistryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sends a heartbeat for an already registered agent.
Source§fn deregister<'life0, 'life1, 'async_trait>(
&'life0 self,
manifest: &'life1 AgentManifest,
) -> Pin<Box<dyn Future<Output = RegistryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn deregister<'life0, 'life1, 'async_trait>(
&'life0 self,
manifest: &'life1 AgentManifest,
) -> Pin<Box<dyn Future<Output = RegistryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Removes the agent from the registry.
Auto Trait Implementations§
impl Freeze for MxpRegistryClient
impl RefUnwindSafe for MxpRegistryClient
impl Send for MxpRegistryClient
impl Sync for MxpRegistryClient
impl Unpin for MxpRegistryClient
impl UnwindSafe for MxpRegistryClient
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