Struct openthread_sys::otLinkedBuffer
source · #[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§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
)