Struct canadensis_data_types::reg::udral::service::common::heartbeat_0_1::Heartbeat
source · pub struct Heartbeat {
pub readiness: Readiness,
pub health: Health,
}
Expand description
reg.udral.service.common.Heartbeat.0.1
Fixed size 2 bytes
The function of the service heartbeat is similar to that of the node heartbeat defined in the standard namespace, except that it is used on a per-service basis, meaning that there may be more than one publisher per node.
The service heartbeat should be published either on a separate subject, or as a structural supertype of a service-specific status subject. The publication rate is service-specific but it should not be lower than 1 Hz.
This is a structural subtype of the Readiness type.
Fields§
§readiness: Readiness
reg.udral.service.common.Readiness.0.1
Always aligned, size 8 bits
health: Health
uavcan.node.Health.1.0
Always aligned, size 8 bits
Implementations§
Trait Implementations§
source§impl Deserialize for Heartbeat
impl Deserialize for Heartbeat
source§fn deserialize(cursor: &mut ReadCursor<'_>) -> Result<Self, DeserializeError>where
Self: Sized,
fn deserialize(cursor: &mut ReadCursor<'_>) -> Result<Self, DeserializeError>where Self: Sized,
Deserializes a value and returns it
source§fn deserialize_from_bytes(bytes: &[u8]) -> Result<Self, DeserializeError>where
Self: Sized,
fn deserialize_from_bytes(bytes: &[u8]) -> Result<Self, DeserializeError>where Self: Sized,
A convenience function that creates a cursor around the provided bytes and calls
deserialize
source§impl Serialize for Heartbeat
impl Serialize for Heartbeat
source§fn size_bits(&self) -> usize
fn size_bits(&self) -> usize
Returns the size of the encoded form of this value, in bits Read more
source§fn serialize(&self, cursor: &mut WriteCursor<'_>)
fn serialize(&self, cursor: &mut WriteCursor<'_>)
Serializes this value into a buffer Read more
source§fn serialize_to_bytes(&self, bytes: &mut [u8])
fn serialize_to_bytes(&self, bytes: &mut [u8])
A convenience function that creates a cursor around the provided bytes and calls
serialize
impl Message for Heartbeat
Auto Trait Implementations§
impl RefUnwindSafe for Heartbeat
impl Send for Heartbeat
impl Sync for Heartbeat
impl Unpin for Heartbeat
impl UnwindSafe for Heartbeat
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