Struct openthread_sys::otTcpListener
source · #[repr(C)]pub struct otTcpListener {
pub mTcbListen: otTcpListener__bindgen_ty_1,
pub mNext: *mut otTcpListener,
pub mContext: *mut c_void,
pub mAcceptReadyCallback: otTcpAcceptReady,
pub mAcceptDoneCallback: otTcpAcceptDone,
}
Expand description
Represents a TCP listener.
A TCP listener is used to listen for and accept incoming TCP connections.
The application should not inspect the fields of this structure directly; it should only interact with it via the TCP API functions whose signatures are provided in this file.
Fields§
§mTcbListen: otTcpListener__bindgen_ty_1
§mNext: *mut otTcpListener
< A pointer to the next TCP listener (internal use only)
mContext: *mut c_void
< A pointer to application-specific context
mAcceptReadyCallback: otTcpAcceptReady
< “Accept ready” callback function
mAcceptDoneCallback: otTcpAcceptDone
< “Accept done” callback function
Trait Implementations§
source§impl Clone for otTcpListener
impl Clone for otTcpListener
source§fn clone(&self) -> otTcpListener
fn clone(&self) -> otTcpListener
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 otTcpListener
impl Default for otTcpListener
impl Copy for otTcpListener
Auto Trait Implementations§
impl Freeze for otTcpListener
impl RefUnwindSafe for otTcpListener
impl !Send for otTcpListener
impl !Sync for otTcpListener
impl Unpin for otTcpListener
impl UnwindSafe for otTcpListener
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
)