#[repr(C)]pub struct otCoapTxParameters {
pub mAckTimeout: u32,
pub mAckRandomFactorNumerator: u8,
pub mAckRandomFactorDenominator: u8,
pub mMaxRetransmit: u8,
}Expand description
This structure represents the CoAP transmission parameters.
Fields§
§mAckTimeout: u32Minimum spacing before first retransmission when ACK is not received, in milliseconds (RFC7252 default value is 2000ms).
mAckRandomFactorNumerator: u8Numerator 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: u8Denominator 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: u8Maximum 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
Returns a copy of the value. Read more
1.0.0 · 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 otCoapTxParameters
impl Debug for 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
Mutably borrows from an owned value. Read more