Struct gnunet_sys::GNUNET_GETOPT_CommandLineOption [−][src]
@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]
fn clone(&self) -> GNUNET_GETOPT_CommandLineOption
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for GNUNET_GETOPT_CommandLineOption
[src]
impl Debug for GNUNET_GETOPT_CommandLineOption
[src]
Auto Trait Implementations
impl RefUnwindSafe for GNUNET_GETOPT_CommandLineOption
impl !Send for GNUNET_GETOPT_CommandLineOption
impl !Sync for GNUNET_GETOPT_CommandLineOption
impl Unpin for GNUNET_GETOPT_CommandLineOption
impl UnwindSafe for GNUNET_GETOPT_CommandLineOption
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,