#[repr(C)]pub struct otUdpSocket {
pub mSockName: otSockAddr,
pub mPeerName: otSockAddr,
pub mHandler: otUdpReceive,
pub mContext: *mut c_void,
pub mHandle: *mut c_void,
pub mNext: *mut otUdpSocket,
}
Expand description
Represents a UDP socket.
Fields§
§mSockName: otSockAddr
< The local IPv6 socket address.
mPeerName: otSockAddr
< The peer IPv6 socket address.
mHandler: otUdpReceive
< A function pointer to the application callback.
mContext: *mut c_void
< A pointer to application-specific context.
mHandle: *mut c_void
< A handle to platform’s UDP.
mNext: *mut otUdpSocket
< A pointer to the next UDP socket (internal use only).
Trait Implementations§
Source§impl Clone for otUdpSocket
impl Clone for otUdpSocket
Source§fn clone(&self) -> otUdpSocket
fn clone(&self) -> otUdpSocket
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 Default for otUdpSocket
impl Default for otUdpSocket
impl Copy for otUdpSocket
Auto Trait Implementations§
impl Freeze for otUdpSocket
impl RefUnwindSafe for otUdpSocket
impl !Send for otUdpSocket
impl !Sync for otUdpSocket
impl Unpin for otUdpSocket
impl UnwindSafe for otUdpSocket
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)