Struct canadensis_data_types::uavcan::pnp::cluster::append_entries_1_0::AppendEntriesRequest
source · [−]pub struct AppendEntriesRequest {
pub term: u32,
pub prev_log_term: u32,
pub prev_log_index: u16,
pub leader_commit: u16,
pub entries: Vec<Entry, 1>,
}
Expand description
uavcan.pnp.cluster.AppendEntries.1.0
Size ranges from 13 to 35 bytes
Fields
term: u32
saturated uint32
Always aligned, size 32 bits
prev_log_term: u32
saturated uint32
Always aligned, size 32 bits
prev_log_index: u16
saturated uint16
Always aligned, size 16 bits
leader_commit: u16
saturated uint16
Always aligned, size 16 bits
entries: Vec<Entry, 1>
uavcan.pnp.cluster.Entry.1.0[<=1]
Always aligned, size ranges from 0 to 176 bits
Implementations
sourceimpl AppendEntriesRequest
impl AppendEntriesRequest
pub const DEFAULT_MAX_ELECTION_TIMEOUT: u8 = 4u8
pub const DEFAULT_MIN_ELECTION_TIMEOUT: u8 = 2u8
Trait Implementations
sourceimpl DataType for AppendEntriesRequest
impl DataType for AppendEntriesRequest
sourceconst EXTENT_BYTES: Option<u32> = _
const EXTENT_BYTES: Option<u32> = _
The sealed or delimited property of this type
sourceimpl Deserialize for AppendEntriesRequest
impl Deserialize for AppendEntriesRequest
sourcefn 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
sourcefn deserialize_zero_copy(cursor: &mut ReadCursor<'_>) -> Self where
Self: AsBytes + FromBytes,
fn deserialize_zero_copy(cursor: &mut ReadCursor<'_>) -> Self where
Self: AsBytes + FromBytes,
Deserializes a value from a slice of bytes and returns it Read more
sourcefn deserialize_from_bytes(bytes: &[u8]) -> Result<Self, DeserializeError>
fn deserialize_from_bytes(bytes: &[u8]) -> Result<Self, DeserializeError>
A convenience function that creates a cursor around the provided bytes and calls
deserialize
Read more
sourceimpl Serialize for AppendEntriesRequest
impl Serialize for AppendEntriesRequest
impl Request for AppendEntriesRequest
Auto Trait Implementations
impl RefUnwindSafe for AppendEntriesRequest
impl Send for AppendEntriesRequest
impl Sync for AppendEntriesRequest
impl Unpin for AppendEntriesRequest
impl UnwindSafe for AppendEntriesRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more