#[repr(C)]pub struct otTcpEndpointInitializeArgs {
pub mContext: *mut c_void,
pub mEstablishedCallback: otTcpEstablished,
pub mSendDoneCallback: otTcpSendDone,
pub mForwardProgressCallback: otTcpForwardProgress,
pub mReceiveAvailableCallback: otTcpReceiveAvailable,
pub mDisconnectedCallback: otTcpDisconnected,
pub mReceiveBuffer: *mut c_void,
pub mReceiveBufferSize: usize,
}
Expand description
Contains arguments to the otTcpEndpointInitialize() function.
Fields§
§mContext: *mut c_void
< Pointer to application-specific context
mEstablishedCallback: otTcpEstablished
< “Established” callback function
mSendDoneCallback: otTcpSendDone
< “Send done” callback function
mForwardProgressCallback: otTcpForwardProgress
< “Forward progress” callback function
mReceiveAvailableCallback: otTcpReceiveAvailable
< “Receive available” callback function
mDisconnectedCallback: otTcpDisconnected
< “Disconnected” callback function
mReceiveBuffer: *mut c_void
< Pointer to memory provided to the system for the TCP receive buffer
mReceiveBufferSize: usize
< Size of memory provided to the system for the TCP receive buffer
Trait Implementations§
Source§impl Clone for otTcpEndpointInitializeArgs
impl Clone for otTcpEndpointInitializeArgs
Source§fn clone(&self) -> otTcpEndpointInitializeArgs
fn clone(&self) -> otTcpEndpointInitializeArgs
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 Debug for otTcpEndpointInitializeArgs
impl Debug for otTcpEndpointInitializeArgs
impl Copy for otTcpEndpointInitializeArgs
Auto Trait Implementations§
impl Freeze for otTcpEndpointInitializeArgs
impl RefUnwindSafe for otTcpEndpointInitializeArgs
impl !Send for otTcpEndpointInitializeArgs
impl !Sync for otTcpEndpointInitializeArgs
impl Unpin for otTcpEndpointInitializeArgs
impl UnwindSafe for otTcpEndpointInitializeArgs
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
)