Struct canadensis_data_types::uavcan::pnp::cluster::request_vote_1_0::RequestVoteRequest [−][src]
#[repr(C, packed)]pub struct RequestVoteRequest {
pub term: u32,
pub last_log_term: u32,
pub last_log_index: u16,
}
Expand description
uavcan.pnp.cluster.RequestVote.1.0
Fixed size 10 bytes
Fields
term: u32
saturated uint32
Always aligned Size 32 bits
last_log_term: u32
saturated uint32
Always aligned Size 32 bits
last_log_index: u16
saturated uint16
Always aligned Size 16 bits
Trait Implementations
The sealed or delimited property of this type
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
Deserializes a value from a slice of bytes and returns it Read more
A convenience function that creates a cursor around the provided bytes and calls
deserialize
Read more