#[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 user provided CLI command entry.
Fields§
§mName: *const c_char< The command string.
mCommand: Option<unsafe extern "C" fn(aContext: *mut c_void, aArgsLength: u8, aArgs: *mut *mut c_char) -> otError>< Command handler function pointer.
Trait Implementations§
Source§impl Clone for otCliCommand
impl Clone for otCliCommand
Source§fn clone(&self) -> otCliCommand
fn clone(&self) -> otCliCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for otCliCommand
Source§impl Debug for otCliCommand
impl Debug for otCliCommand
Auto Trait Implementations§
impl !Send for otCliCommand
impl !Sync for otCliCommand
impl Freeze for otCliCommand
impl RefUnwindSafe for otCliCommand
impl Unpin for otCliCommand
impl UnsafeUnpin 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