-pub extern "C" fn RetryAttempts_new(mut a_arg: usize) -> RetryAttempts {
- RetryAttempts { inner: ObjOps::heap_alloc(lightning_invoice::payment::RetryAttempts (
- a_arg,
- )), is_owned: true }
-}
-impl Clone for RetryAttempts {
- fn clone(&self) -> Self {
- Self {
- inner: if <*mut nativeRetryAttempts>::is_null(self.inner) { core::ptr::null_mut() } else {
- ObjOps::heap_alloc(unsafe { &*ObjOps::untweak_ptr(self.inner) }.clone()) },
- is_owned: true,
- }
- }
-}
-#[allow(unused)]
-/// Used only if an object of this type is returned as a trait impl by a method
-pub(crate) extern "C" fn RetryAttempts_clone_void(this_ptr: *const c_void) -> *mut c_void {
- Box::into_raw(Box::new(unsafe { (*(this_ptr as *mut nativeRetryAttempts)).clone() })) as *mut c_void
+/// Utility method to constructs a new Attempts-variant Retry
+pub extern "C" fn Retry_attempts(a: usize) -> Retry {
+ Retry::Attempts(a, )