Struct openthread_sys::otCliCommand
source · #[repr(C)]pub struct otCliCommand {
pub mName: *const c_char,
pub mCommand: Option<unsafe extern "C" fn(aContext: *mut c_void, aArgsLength: u8, aArgs: *mut *mut c_char) -> otError>,
}
Expand description
Represents a CLI command.
Fields§
§mName: *const c_char
< A pointer to the command string.
mCommand: Option<unsafe extern "C" fn(aContext: *mut c_void, aArgsLength: u8, aArgs: *mut *mut c_char) -> otError>
Trait Implementations§
source§impl Clone for otCliCommand
impl Clone for otCliCommand
source§fn clone(&self) -> otCliCommand
fn clone(&self) -> otCliCommand
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 otCliCommand
impl Debug for otCliCommand
source§impl Default for otCliCommand
impl Default for otCliCommand
impl Copy for otCliCommand
Auto Trait Implementations§
impl Freeze for otCliCommand
impl RefUnwindSafe for otCliCommand
impl !Send for otCliCommand
impl !Sync for otCliCommand
impl Unpin for otCliCommand
impl UnwindSafe for otCliCommand
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
)