/**
* Creates a new CResult_NoneSendErrorZ in the error state.
*/
- public static Result_NoneSendErrorZ err(SendError e) {
+ public static Result_NoneSendErrorZ err(org.ldk.structs.SendError e) {
long ret = bindings.CResult_NoneSendErrorZ_err(e.ptr);
Reference.reachabilityFence(e);
if (ret >= 0 && ret <= 4096) { return null; }
Result_NoneSendErrorZ ret_hu_conv = Result_NoneSendErrorZ.constr_from_ptr(ret);
+ if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(e); };
return ret_hu_conv;
}