pub struct CapabilityProvider {
pub id: String,
pub kind: i32,
pub namespace: String,
pub capability_md_path: String,
pub last_heartbeat_ms: u64,
pub state: i32,
pub state_detail: String,
pub capabilities: Vec<Capability>,
}Expand description
One registered CapabilityProvider (Primitive / Service / Skill) and the
Capabilities it currently offers. The shape is the same for all three
kinds – the kind is carried in the kind field, redundant when the
caller used Query with a kind filter but cheap and lets consumers
demultiplex when Query(kind=UNSPECIFIED) was used.
capabilities is metadata only – endpoint strings + TransportParams
are revealed only via ConnectCapability.
Fields§
§id: String§kind: i32§namespace: String§capability_md_path: String§last_heartbeat_ms: u64§state: i32§state_detail: String§capabilities: Vec<Capability>Each Capability’s provider_id / provider_kind equal this CapabilityProvider’s id / kind. The duplication is intentional – see Capability above.
Implementations§
Source§impl CapabilityProvider
impl CapabilityProvider
Sourcepub fn kind(&self) -> Kind
pub fn kind(&self) -> Kind
Returns the enum value of kind, or the default if the field is set to an invalid enum value.
Sourcepub fn state(&self) -> LifecycleState
pub fn state(&self) -> LifecycleState
Returns the enum value of state, or the default if the field is set to an invalid enum value.
Sourcepub fn set_state(&mut self, value: LifecycleState)
pub fn set_state(&mut self, value: LifecycleState)
Sets state to the provided enum value.
Trait Implementations§
Source§impl Clone for CapabilityProvider
impl Clone for CapabilityProvider
Source§fn clone(&self) -> CapabilityProvider
fn clone(&self) -> CapabilityProvider
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CapabilityProvider
impl Debug for CapabilityProvider
Source§impl Default for CapabilityProvider
impl Default for CapabilityProvider
Source§impl Message for CapabilityProvider
impl Message for CapabilityProvider
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for CapabilityProvider
impl PartialEq for CapabilityProvider
impl StructuralPartialEq for CapabilityProvider
Auto Trait Implementations§
impl Freeze for CapabilityProvider
impl RefUnwindSafe for CapabilityProvider
impl Send for CapabilityProvider
impl Sync for CapabilityProvider
impl Unpin for CapabilityProvider
impl UnsafeUnpin for CapabilityProvider
impl UnwindSafe for CapabilityProvider
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
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>,
Layered].