#[repr(C)]pub struct otCoapTxParameters {
pub mAckTimeout: u32,
pub mAckRandomFactorNumerator: u8,
pub mAckRandomFactorDenominator: u8,
pub mMaxRetransmit: u8,
}
Expand description
Represents the CoAP transmission parameters.
@note mAckTimeout * ((2 ** (mMaxRetransmit + 1)) - 1) * (mAckRandomFactorNumerator / mAckRandomFactorDenominator) must not exceed what can be represented by a uint32_t (0xffffffff). This limitation allows OpenThread to avoid 64-bit arithmetic.
Fields§
§mAckTimeout: u32
Minimum spacing before first retransmission when ACK is not received, in milliseconds (RFC7252 default value is 2000ms).
mAckRandomFactorNumerator: u8
Numerator of ACK_RANDOM_FACTOR used to calculate maximum spacing before first retransmission when ACK is not received (RFC7252 default value of ACK_RANDOM_FACTOR is 1.5; must not be decreased below 1).
mAckRandomFactorDenominator: u8
Denominator of ACK_RANDOM_FACTOR used to calculate maximum spacing before first retransmission when ACK is not received (RFC7252 default value of ACK_RANDOM_FACTOR is 1.5; must not be decreased below 1).
mMaxRetransmit: u8
Maximum number of retransmissions for CoAP Confirmable messages (RFC7252 default value is 4).
Trait Implementations§
Source§impl Clone for otCoapTxParameters
impl Clone for otCoapTxParameters
Source§fn clone(&self) -> otCoapTxParameters
fn clone(&self) -> otCoapTxParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for otCoapTxParameters
impl Debug for otCoapTxParameters
Source§impl Default for otCoapTxParameters
impl Default for otCoapTxParameters
Source§fn default() -> otCoapTxParameters
fn default() -> otCoapTxParameters
impl Copy for otCoapTxParameters
Auto Trait Implementations§
impl Freeze for otCoapTxParameters
impl RefUnwindSafe for otCoapTxParameters
impl Send for otCoapTxParameters
impl Sync for otCoapTxParameters
impl Unpin for otCoapTxParameters
impl UnwindSafe for otCoapTxParameters
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)