pub struct CapabilityAdvertisement {
pub platform_id: String,
pub advertised_at: Option<Timestamp>,
pub capabilities: Vec<Capability>,
pub resources: Option<ResourceStatus>,
pub operational_status: i32,
}Expand description
Capability advertisement message - flows upward from platforms
Platforms periodically advertise their capabilities, allowing the hierarchy to maintain an up-to-date view of available resources. This is a generic advertisement that can include any capability type (sensors, compute, AI models, mobility, etc.)
Fields§
§platform_id: StringPlatform identifier (e.g., “Alpha-3”, “UAV-001”)
advertised_at: Option<Timestamp>Timestamp of advertisement
capabilities: Vec<Capability>List of capabilities available on this platform
resources: Option<ResourceStatus>Current resource utilization (optional)
operational_status: i32Platform operational status
Implementations§
Source§impl CapabilityAdvertisement
impl CapabilityAdvertisement
Sourcepub fn operational_status(&self) -> OperationalStatus
pub fn operational_status(&self) -> OperationalStatus
Returns the enum value of operational_status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_operational_status(&mut self, value: OperationalStatus)
pub fn set_operational_status(&mut self, value: OperationalStatus)
Sets operational_status to the provided enum value.
Trait Implementations§
Source§impl Clone for CapabilityAdvertisement
impl Clone for CapabilityAdvertisement
Source§fn clone(&self) -> CapabilityAdvertisement
fn clone(&self) -> CapabilityAdvertisement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CapabilityAdvertisement
impl Debug for CapabilityAdvertisement
Source§impl Default for CapabilityAdvertisement
impl Default for CapabilityAdvertisement
Source§impl<'de> Deserialize<'de> for CapabilityAdvertisement
impl<'de> Deserialize<'de> for CapabilityAdvertisement
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 Message for CapabilityAdvertisement
impl Message for CapabilityAdvertisement
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for CapabilityAdvertisement
impl PartialEq for CapabilityAdvertisement
Source§fn eq(&self, other: &CapabilityAdvertisement) -> bool
fn eq(&self, other: &CapabilityAdvertisement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CapabilityAdvertisement
impl Serialize for CapabilityAdvertisement
impl StructuralPartialEq for CapabilityAdvertisement
Auto Trait Implementations§
impl Freeze for CapabilityAdvertisement
impl RefUnwindSafe for CapabilityAdvertisement
impl Send for CapabilityAdvertisement
impl Sync for CapabilityAdvertisement
impl Unpin for CapabilityAdvertisement
impl UnsafeUnpin for CapabilityAdvertisement
impl UnwindSafe for CapabilityAdvertisement
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