/// Should be called if task fails (exactly once, thus takes ownership)
Should be called if task fails (exactly once, thus takes ownership)
Should be called if task fails ( exactly once thus takes ownership )
pub fn failed(self, error: Error) {
        let ptr = Error::c_api_from(Err(error));
        (self.completion_callback)(self.user_data, ptr::null(), ptr);
        // free without running the destructor
        std::mem::forget(self)
    }
pub fn failed ( self , error : Error ) { let ptr = Error :: c_api_from ( Err ( error ) ) ; ( self . completion_callback ) ( self . user_data , ptr :: null ( ) , ptr ) ; // free without running the destructor std :: mem :: forget ( self ) }
Should be called if task fails (exactly once, thus takes ownership)
Should be called if task fails ( exactly once thus takes ownership )
self
error
Error