fn new(name: &str) -> Fallible<StapProvider> {
        let c_name = CString::new(name)?;

        let provider_ptr = unsafe { providerInit(c_name.as_ptr()) };

        if provider_ptr.is_null() {
            return Err(StapError::NativeCallFailed {
                func: "providerInit",
            }
            .into());
        }

        Ok(StapProvider {
            provider: provider_ptr,
            probes: HashMap::new(),
        })
    }
/// Initializes a new stap provider including calling `providerInit`.  This is internal to
/// this module; the caller should also call `add_probe` for each probe defined on the
/// provider.
Initializes a new stap provider including calling `providerInit`.  This is internal to
this module; the caller should also call `add_probe` for each probe defined on the
provider.
Initializes a new stap provider including calling ` providerInit ` . This is internal to this module ; the caller should also call ` add_probe ` for each probe defined on the provider .
fn new(name: &str) -> Fallible<StapProvider> {
        let c_name = CString::new(name)?;
        let provider_ptr = unsafe { providerInit(c_name.as_ptr()) };
        if provider_ptr.is_null() {
            return Err(StapError::NativeCallFailed {
                func: "providerInit",
            }
            .into());
        }
        Ok(StapProvider {
            provider: provider_ptr,
            probes: HashMap::new(),
        })
    }
fn new ( name : & str ) -> Fallible < StapProvider > { let c_name = CString :: new ( name ) ? ; let provider_ptr = unsafe { providerInit ( c_name . as_ptr ( ) ) } ; if provider_ptr . is_null ( ) { return Err ( StapError :: NativeCallFailed { func : " " , } . into ( ) ) ; } Ok ( StapProvider { provider : provider_ptr , probes : HashMap :: new ( ) , } ) }
Initializes a new stap provider including calling `providerInit`.
Initializes a new stap provider including calling ` providerInit ` .
name
&str
name
&str