#[repr(C)]pub struct otPingSenderConfig {
pub mSource: otIp6Address,
pub mDestination: otIp6Address,
pub mReplyCallback: otPingSenderReplyCallback,
pub mStatisticsCallback: otPingSenderStatisticsCallback,
pub mCallbackContext: *mut c_void,
pub mSize: u16,
pub mCount: u16,
pub mInterval: u32,
pub mTimeout: u16,
pub mHopLimit: u8,
pub mAllowZeroHopLimit: bool,
pub mMulticastLoop: bool,
}Expand description
Represents a ping request configuration.
Fields§
§mSource: otIp6Address< Source address of the ping.
mDestination: otIp6Address< Destination address to ping.
mReplyCallback: otPingSenderReplyCallback< Callback function to report replies (can be NULL if not needed).
mStatisticsCallback: otPingSenderStatisticsCallback< Callback function to report statistics (can be NULL if not needed).
mCallbackContext: *mut c_void< A pointer to the callback application-specific context.
mSize: u16< Data size (# of bytes) excludes IPv6/ICMPv6 header. Zero for default.
mCount: u16< Number of ping messages to send. Zero to use default.
mInterval: u32< Ping tx interval in milliseconds. Zero to use default.
mTimeout: u16< Time in milliseconds to wait for final reply after sending final request. < Zero to use default.
mHopLimit: u8< Hop limit (used if mAllowZeroHopLimit is false). Zero for default.
mAllowZeroHopLimit: bool< Indicates whether hop limit is zero.
mMulticastLoop: bool< Allow looping back pings to multicast address that device is subscribed to.
Trait Implementations§
Source§impl Clone for otPingSenderConfig
impl Clone for otPingSenderConfig
Source§fn clone(&self) -> otPingSenderConfig
fn clone(&self) -> otPingSenderConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more