pub struct AtlasService { /* private fields */ }Implementations§
Source§impl AtlasService
impl AtlasService
pub fn new(registry: Arc<AtlasRegistry>) -> Self
Trait Implementations§
Source§impl Atlas for AtlasService
impl Atlas for AtlasService
Source§fn register_primitive<'life0, 'async_trait>(
&'life0 self,
req: Request<RegisterRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RegisterResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn register_primitive<'life0, 'async_trait>(
&'life0 self,
req: Request<RegisterRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RegisterResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Registration – one RPC per CapabilityProvider kind.
fn register_service<'life0, 'async_trait>(
&'life0 self,
req: Request<RegisterRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RegisterResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn register_skill<'life0, 'async_trait>(
&'life0 self,
req: Request<RegisterRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RegisterResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn unregister<'life0, 'async_trait>(
&'life0 self,
req: Request<UnregisterRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<UnregisterResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn heartbeat<'life0, 'async_trait>(
&'life0 self,
req: Request<HeartbeatRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<HeartbeatResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn heartbeat<'life0, 'async_trait>(
&'life0 self,
req: Request<HeartbeatRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<HeartbeatResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Liveness + lifecycle.
fn set_lifecycle_state<'life0, 'async_trait>(
&'life0 self,
req: Request<SetLifecycleStateRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SetLifecycleStateResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn declare_capability<'life0, 'async_trait>(
&'life0 self,
req: Request<DeclareCapabilityRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeclareCapabilityResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn declare_capability<'life0, 'async_trait>(
&'life0 self,
req: Request<DeclareCapabilityRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeclareCapabilityResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Capability binding.
Source§fn query<'life0, 'async_trait>(
&'life0 self,
req: Request<QueryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn query<'life0, 'async_trait>(
&'life0 self,
req: Request<QueryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Discovery – one Query RPC, kind carried in the request body.
Consumers wanting a flat capability list flatten
CapabilityProvider.capabilities
themselves; each Capability already carries provider_id / provider_kind.Source§fn connect_capability<'life0, 'async_trait>(
&'life0 self,
req: Request<ConnectCapabilityRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ConnectCapabilityResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect_capability<'life0, 'async_trait>(
&'life0 self,
req: Request<ConnectCapabilityRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ConnectCapabilityResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Channels.
fn disconnect_capability<'life0, 'async_trait>(
&'life0 self,
req: Request<DisconnectCapabilityRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DisconnectCapabilityResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn inspect_atlas<'life0, 'async_trait>(
&'life0 self,
_req: Request<InspectAtlasRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<InspectAtlasResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn inspect_atlas<'life0, 'async_trait>(
&'life0 self,
_req: Request<InspectAtlasRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<InspectAtlasResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Debug.
Source§fn query_contract<'life0, 'async_trait>(
&'life0 self,
req: Request<QueryContractRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryContractResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn query_contract<'life0, 'async_trait>(
&'life0 self,
req: Request<QueryContractRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryContractResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Contracts.
fn list_contracts<'life0, 'async_trait>(
&'life0 self,
req: Request<ListContractsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListContractsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for AtlasService
impl !RefUnwindSafe for AtlasService
impl Send for AtlasService
impl Sync for AtlasService
impl Unpin for AtlasService
impl UnsafeUnpin for AtlasService
impl !UnwindSafe for AtlasService
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].