#[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§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
)