/// Should be called on succesfull task execution (exactly once, thus takes ownership)
Should be called on succesfull task execution (exactly once, thus takes ownership)
Should be called on succesfull task execution ( exactly once thus takes ownership )
pub fn succeeded<T: NodeResponse>(self, t: T) {
        let ptr = Box::into_raw(Box::new(t)) as *mut _ as *mut c_void;
        (self.completion_callback)(self.user_data, ptr, ptr::null());
        // free without running the destructor
        std::mem::forget(self)
    }
pub fn succeeded < T : NodeResponse > ( self , t : T ) { let ptr = Box :: into_raw ( Box :: new ( t ) ) as * mut _ as * mut c_void ; ( self . completion_callback ) ( self . user_data , ptr , ptr :: null ( ) ) ; // free without running the destructor std :: mem :: forget ( self ) }
Should be called on succesfull task execution (exactly once, thus takes ownership)
Should be called on succesfull task execution ( exactly once thus takes ownership )
self
t
T