pub struct AgentCapabilities {
pub protocol_version: u32,
pub agent_id: String,
pub name: String,
pub version: String,
pub supported_events: Vec<EventType>,
pub features: AgentFeatures,
pub limits: AgentLimits,
pub health: HealthConfig,
}Expand description
Agent capabilities declared during handshake.
Fields§
§protocol_version: u32§agent_id: String§name: String§version: String§supported_events: Vec<EventType>§features: AgentFeatures§limits: AgentLimits§health: HealthConfigImplementations§
Source§impl AgentCapabilities
impl AgentCapabilities
pub fn new( agent_id: impl Into<String>, name: impl Into<String>, version: impl Into<String>, ) -> Self
pub fn supports_event(&self, event_type: EventType) -> bool
pub fn with_event(self, event_type: EventType) -> Self
pub fn with_features(self, features: AgentFeatures) -> Self
pub fn with_limits(self, limits: AgentLimits) -> Self
Trait Implementations§
Source§impl Clone for AgentCapabilities
impl Clone for AgentCapabilities
Source§fn clone(&self) -> AgentCapabilities
fn clone(&self) -> AgentCapabilities
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentCapabilities
impl Debug for AgentCapabilities
Source§impl<'de> Deserialize<'de> for AgentCapabilities
impl<'de> Deserialize<'de> for AgentCapabilities
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<UdsCapabilities> for AgentCapabilities
impl From<UdsCapabilities> for AgentCapabilities
Source§fn from(caps: UdsCapabilities) -> Self
fn from(caps: UdsCapabilities) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AgentCapabilities
impl RefUnwindSafe for AgentCapabilities
impl Send for AgentCapabilities
impl Sync for AgentCapabilities
impl Unpin for AgentCapabilities
impl UnwindSafe for AgentCapabilities
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request