Struct openthread_sys::otUdpSocket
source · #[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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)