Struct gnunet_sys::GNUNET_GETOPT_CommandLineOption[][src]

#[repr(C)]pub struct GNUNET_GETOPT_CommandLineOption {
    pub shortName: c_char,
    pub name: *const c_char,
    pub argumentHelp: *const c_char,
    pub description: *const c_char,
    pub require_argument: c_int,
    pub option_mandatory: c_int,
    pub option_exclusive: c_int,
    pub processor: GNUNET_GETOPT_CommandLineOptionProcessor,
    pub cleaner: Option<unsafe extern "C" fn(cls: *mut c_void)>,
    pub scls: *mut c_void,
}

@brief Definition of a command line option.

Fields

shortName: c_char

Short name of the option.

name: *const c_char

Long name of the option (may not be NULL)

argumentHelp: *const c_char

Name of the argument for the user in help text

description: *const c_char

Help text for the option (description)

require_argument: c_int

Is an argument required? #GNUNET_NO (includes optional) or #GNUNET_YES (required)

option_mandatory: c_int

Is the presence of this option mandatory?

option_exclusive: c_int

Is the option exclusive?

processor: GNUNET_GETOPT_CommandLineOptionProcessor

Handler for the option.

cleaner: Option<unsafe extern "C" fn(cls: *mut c_void)>

Function to call on @e scls to clean up after processing all the arguments. Can be NULL.

scls: *mut c_void

Specific closure to pass to the processor.

Trait Implementations

impl Clone for GNUNET_GETOPT_CommandLineOption[src]

impl Copy for GNUNET_GETOPT_CommandLineOption[src]

impl Debug for GNUNET_GETOPT_CommandLineOption[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.