Struct esp_idf_sys::esp_console_cmd_t
source · #[repr(C)]pub struct esp_console_cmd_t {
pub command: *const c_char,
pub help: *const c_char,
pub hint: *const c_char,
pub func: esp_console_cmd_func_t,
pub argtable: *mut c_void,
}
Expand description
@brief Console command description
Fields§
§command: *const c_char
Command name. Must not be NULL, must not contain spaces. The pointer must be valid until the call to esp_console_deinit.
help: *const c_char
Help text for the command, shown by help command. If set, the pointer must be valid until the call to esp_console_deinit. If not set, the command will not be listed in ‘help’ output.
hint: *const c_char
Hint text, usually lists possible arguments. If set to NULL, and ‘argtable’ field is non-NULL, hint will be generated automatically
func: esp_console_cmd_func_t
Pointer to a function which implements the command.
argtable: *mut c_void
Array or structure of pointers to arg_xxx structures, may be NULL. Used to generate hint text if ‘hint’ is set to NULL. Array/structure which this field points to must end with an arg_end. Only used for the duration of esp_console_cmd_register call.
Trait Implementations§
source§impl Clone for esp_console_cmd_t
impl Clone for esp_console_cmd_t
source§fn clone(&self) -> esp_console_cmd_t
fn clone(&self) -> esp_console_cmd_t
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for esp_console_cmd_t
impl Debug for esp_console_cmd_t
source§impl Default for esp_console_cmd_t
impl Default for esp_console_cmd_t
impl Copy for esp_console_cmd_t
Auto Trait Implementations§
impl Freeze for esp_console_cmd_t
impl RefUnwindSafe for esp_console_cmd_t
impl !Send for esp_console_cmd_t
impl !Sync for esp_console_cmd_t
impl Unpin for esp_console_cmd_t
impl UnwindSafe for esp_console_cmd_t
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)