#[repr(C)]pub struct otLinkedBuffer {
pub mNext: *mut otLinkedBuffer,
pub mData: *const u8,
pub mLength: usize,
}
Expand description
A linked buffer structure for use with TCP.
A single otLinkedBuffer structure references an array of bytes in memory, via mData and mLength. The mNext field is used to form a chain of otLinkedBuffer structures.
Fields§
§mNext: *mut otLinkedBuffer
< Pointer to the next linked buffer in the chain, or NULL if it is the end.
mData: *const u8
< Pointer to data referenced by this linked buffer.
mLength: usize
< Length of this linked buffer (number of bytes).
Trait Implementations§
Source§impl Clone for otLinkedBuffer
impl Clone for otLinkedBuffer
Source§fn clone(&self) -> otLinkedBuffer
fn clone(&self) -> otLinkedBuffer
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 otLinkedBuffer
impl Debug for otLinkedBuffer
Source§impl Default for otLinkedBuffer
impl Default for otLinkedBuffer
impl Copy for otLinkedBuffer
Auto Trait Implementations§
impl Freeze for otLinkedBuffer
impl RefUnwindSafe for otLinkedBuffer
impl !Send for otLinkedBuffer
impl !Sync for otLinkedBuffer
impl Unpin for otLinkedBuffer
impl UnwindSafe for otLinkedBuffer
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
)