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