@@ -16,6 +16,8 @@ impl AsyncInitable {
16
16
#[ allow( clippy:: new_ret_no_self) ]
17
17
#[ doc( alias = "g_async_initable_new_async" ) ]
18
18
#[ track_caller]
19
+ #[ deprecated = "Use AsyncInitable::builder() or AsyncInitable::new_default() instead" ]
20
+ #[ allow( deprecated) ]
19
21
pub fn new <
20
22
O : IsClass + IsA < Object > + IsA < AsyncInitable > ,
21
23
Q : FnOnce ( Result < O , glib:: Error > ) + ' static ,
@@ -41,6 +43,8 @@ impl AsyncInitable {
41
43
/// `AsyncInitable::init` failed.
42
44
#[ doc( alias = "g_async_initable_new_async" ) ]
43
45
#[ track_caller]
46
+ #[ deprecated = "Use AsyncInitable::builder() or AsyncInitable::new_default_future() instead" ]
47
+ #[ allow( deprecated) ]
44
48
pub fn new_future < O : IsClass + IsA < Object > + IsA < AsyncInitable > > (
45
49
properties : & [ ( & str , & dyn ToValue ) ] ,
46
50
io_priority : glib:: Priority ,
@@ -58,6 +62,7 @@ impl AsyncInitable {
58
62
/// `AsyncInitable::init` failed.
59
63
#[ doc( alias = "g_async_initable_new_async" ) ]
60
64
#[ track_caller]
65
+ #[ deprecated = "Use AsyncInitable::builder() or AsyncInitable::new_default_with_type() instead" ]
61
66
pub fn with_type < Q : FnOnce ( Result < Object , glib:: Error > ) + ' static > (
62
67
type_ : Type ,
63
68
properties : & [ ( & str , & dyn ToValue ) ] ,
@@ -93,6 +98,7 @@ impl AsyncInitable {
93
98
/// `AsyncInitable::init` failed.
94
99
#[ doc( alias = "g_async_initable_new_async" ) ]
95
100
#[ track_caller]
101
+ #[ deprecated = "Use AsyncInitable::builder() or AsyncInitable::new_default_future() instead" ]
96
102
pub fn with_type_future (
97
103
type_ : Type ,
98
104
properties : & [ ( & str , & dyn ToValue ) ] ,
@@ -230,6 +236,7 @@ impl AsyncInitable {
230
236
/// `AsyncInitable::init` failed.
231
237
#[ doc( alias = "g_async_initable_new_async" ) ]
232
238
#[ track_caller]
239
+ #[ deprecated = "Use AsyncInitable::with_mut_values() instead" ]
233
240
pub fn with_values < Q : FnOnce ( Result < Object , glib:: Error > ) + ' static > (
234
241
type_ : Type ,
235
242
properties : & [ ( & str , glib:: Value ) ] ,
@@ -265,6 +272,7 @@ impl AsyncInitable {
265
272
/// `AsyncInitable::init` failed.
266
273
#[ doc( alias = "g_async_initable_new_async" ) ]
267
274
#[ track_caller]
275
+ #[ deprecated = "Use AsyncInitable::with_mut_values_future() instead" ]
268
276
pub fn with_values_future (
269
277
type_ : Type ,
270
278
properties : & [ ( & str , glib:: Value ) ] ,
0 commit comments