Skip to content

Commit eaed54e

Browse files
committed
Update gir and regenerate with simplified trait bounds
Trait bounds moved from `where T: Foo` directly into the type parameter definition at `<T: Foo>`: gtk-rs/gir#1160.
1 parent 21b3bf1 commit eaed54e

File tree

210 files changed

+1197
-1332
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+1197
-1332
lines changed

gstreamer-app/src/auto/app_sink.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ impl AppSink {
187187
}
188188

189189
#[doc(alias = "eos")]
190-
pub fn connect_eos<F: Fn(&AppSink) + Send + 'static>(&self, f: F) -> SignalHandlerId {
190+
pub fn connect_eos<F: Fn(&Self) + Send + 'static>(&self, f: F) -> SignalHandlerId {
191191
unsafe extern "C" fn eos_trampoline<F: Fn(&AppSink) + Send + 'static>(
192192
this: *mut ffi::GstAppSink,
193193
f: glib::ffi::gpointer,
@@ -210,7 +210,7 @@ impl AppSink {
210210

211211
#[doc(alias = "new-preroll")]
212212
pub fn connect_new_preroll<
213-
F: Fn(&AppSink) -> Result<gst::FlowSuccess, gst::FlowError> + Send + 'static,
213+
F: Fn(&Self) -> Result<gst::FlowSuccess, gst::FlowError> + Send + 'static,
214214
>(
215215
&self,
216216
f: F,
@@ -239,7 +239,7 @@ impl AppSink {
239239

240240
#[doc(alias = "new-sample")]
241241
pub fn connect_new_sample<
242-
F: Fn(&AppSink) -> Result<gst::FlowSuccess, gst::FlowError> + Send + 'static,
242+
F: Fn(&Self) -> Result<gst::FlowSuccess, gst::FlowError> + Send + 'static,
243243
>(
244244
&self,
245245
f: F,
@@ -267,7 +267,7 @@ impl AppSink {
267267
}
268268

269269
#[doc(alias = "buffer-list")]
270-
pub fn connect_buffer_list_notify<F: Fn(&AppSink) + Send + Sync + 'static>(
270+
pub fn connect_buffer_list_notify<F: Fn(&Self) + Send + Sync + 'static>(
271271
&self,
272272
f: F,
273273
) -> SignalHandlerId {
@@ -295,7 +295,7 @@ impl AppSink {
295295
}
296296

297297
#[doc(alias = "caps")]
298-
pub fn connect_caps_notify<F: Fn(&AppSink) + Send + Sync + 'static>(
298+
pub fn connect_caps_notify<F: Fn(&Self) + Send + Sync + 'static>(
299299
&self,
300300
f: F,
301301
) -> SignalHandlerId {
@@ -321,7 +321,7 @@ impl AppSink {
321321
}
322322

323323
#[doc(alias = "drop")]
324-
pub fn connect_drop_notify<F: Fn(&AppSink) + Send + Sync + 'static>(
324+
pub fn connect_drop_notify<F: Fn(&Self) + Send + Sync + 'static>(
325325
&self,
326326
f: F,
327327
) -> SignalHandlerId {
@@ -347,7 +347,7 @@ impl AppSink {
347347
}
348348

349349
#[doc(alias = "emit-signals")]
350-
pub fn connect_emit_signals_notify<F: Fn(&AppSink) + Send + Sync + 'static>(
350+
pub fn connect_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
351351
&self,
352352
f: F,
353353
) -> SignalHandlerId {
@@ -375,7 +375,7 @@ impl AppSink {
375375
}
376376

377377
#[doc(alias = "eos")]
378-
pub fn connect_eos_notify<F: Fn(&AppSink) + Send + Sync + 'static>(
378+
pub fn connect_eos_notify<F: Fn(&Self) + Send + Sync + 'static>(
379379
&self,
380380
f: F,
381381
) -> SignalHandlerId {
@@ -401,7 +401,7 @@ impl AppSink {
401401
}
402402

403403
#[doc(alias = "max-buffers")]
404-
pub fn connect_max_buffers_notify<F: Fn(&AppSink) + Send + Sync + 'static>(
404+
pub fn connect_max_buffers_notify<F: Fn(&Self) + Send + Sync + 'static>(
405405
&self,
406406
f: F,
407407
) -> SignalHandlerId {
@@ -429,7 +429,7 @@ impl AppSink {
429429
}
430430

431431
#[doc(alias = "wait-on-eos")]
432-
pub fn connect_wait_on_eos_notify<F: Fn(&AppSink) + Send + Sync + 'static>(
432+
pub fn connect_wait_on_eos_notify<F: Fn(&Self) + Send + Sync + 'static>(
433433
&self,
434434
f: F,
435435
) -> SignalHandlerId {

gstreamer-app/src/auto/app_src.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ impl AppSrc {
313313
}
314314

315315
#[doc(alias = "enough-data")]
316-
pub fn connect_enough_data<F: Fn(&AppSrc) + Send + Sync + 'static>(
316+
pub fn connect_enough_data<F: Fn(&Self) + Send + Sync + 'static>(
317317
&self,
318318
f: F,
319319
) -> SignalHandlerId {
@@ -338,7 +338,7 @@ impl AppSrc {
338338
}
339339

340340
#[doc(alias = "need-data")]
341-
pub fn connect_need_data<F: Fn(&AppSrc, u32) + Send + Sync + 'static>(
341+
pub fn connect_need_data<F: Fn(&Self, u32) + Send + Sync + 'static>(
342342
&self,
343343
f: F,
344344
) -> SignalHandlerId {
@@ -364,7 +364,7 @@ impl AppSrc {
364364
}
365365

366366
#[doc(alias = "seek-data")]
367-
pub fn connect_seek_data<F: Fn(&AppSrc, u64) -> bool + Send + Sync + 'static>(
367+
pub fn connect_seek_data<F: Fn(&Self, u64) -> bool + Send + Sync + 'static>(
368368
&self,
369369
f: F,
370370
) -> SignalHandlerId {
@@ -392,7 +392,7 @@ impl AppSrc {
392392
}
393393

394394
#[doc(alias = "block")]
395-
pub fn connect_block_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
395+
pub fn connect_block_notify<F: Fn(&Self) + Send + Sync + 'static>(
396396
&self,
397397
f: F,
398398
) -> SignalHandlerId {
@@ -418,7 +418,7 @@ impl AppSrc {
418418
}
419419

420420
#[doc(alias = "caps")]
421-
pub fn connect_caps_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
421+
pub fn connect_caps_notify<F: Fn(&Self) + Send + Sync + 'static>(
422422
&self,
423423
f: F,
424424
) -> SignalHandlerId {
@@ -444,7 +444,7 @@ impl AppSrc {
444444
}
445445

446446
#[doc(alias = "current-level-bytes")]
447-
pub fn connect_current_level_bytes_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
447+
pub fn connect_current_level_bytes_notify<F: Fn(&Self) + Send + Sync + 'static>(
448448
&self,
449449
f: F,
450450
) -> SignalHandlerId {
@@ -474,7 +474,7 @@ impl AppSrc {
474474
#[cfg(any(feature = "v1_10", feature = "dox"))]
475475
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
476476
#[doc(alias = "duration")]
477-
pub fn connect_duration_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
477+
pub fn connect_duration_notify<F: Fn(&Self) + Send + Sync + 'static>(
478478
&self,
479479
f: F,
480480
) -> SignalHandlerId {
@@ -500,7 +500,7 @@ impl AppSrc {
500500
}
501501

502502
#[doc(alias = "emit-signals")]
503-
pub fn connect_emit_signals_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
503+
pub fn connect_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
504504
&self,
505505
f: F,
506506
) -> SignalHandlerId {
@@ -528,7 +528,7 @@ impl AppSrc {
528528
}
529529

530530
#[doc(alias = "format")]
531-
pub fn connect_format_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
531+
pub fn connect_format_notify<F: Fn(&Self) + Send + Sync + 'static>(
532532
&self,
533533
f: F,
534534
) -> SignalHandlerId {
@@ -556,7 +556,7 @@ impl AppSrc {
556556
#[cfg(any(feature = "v1_18", feature = "dox"))]
557557
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
558558
#[doc(alias = "handle-segment-change")]
559-
pub fn connect_handle_segment_change_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
559+
pub fn connect_handle_segment_change_notify<F: Fn(&Self) + Send + Sync + 'static>(
560560
&self,
561561
f: F,
562562
) -> SignalHandlerId {
@@ -584,7 +584,7 @@ impl AppSrc {
584584
}
585585

586586
#[doc(alias = "is-live")]
587-
pub fn connect_is_live_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
587+
pub fn connect_is_live_notify<F: Fn(&Self) + Send + Sync + 'static>(
588588
&self,
589589
f: F,
590590
) -> SignalHandlerId {
@@ -610,7 +610,7 @@ impl AppSrc {
610610
}
611611

612612
#[doc(alias = "max-bytes")]
613-
pub fn connect_max_bytes_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
613+
pub fn connect_max_bytes_notify<F: Fn(&Self) + Send + Sync + 'static>(
614614
&self,
615615
f: F,
616616
) -> SignalHandlerId {
@@ -636,7 +636,7 @@ impl AppSrc {
636636
}
637637

638638
#[doc(alias = "max-latency")]
639-
pub fn connect_max_latency_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
639+
pub fn connect_max_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
640640
&self,
641641
f: F,
642642
) -> SignalHandlerId {
@@ -664,7 +664,7 @@ impl AppSrc {
664664
}
665665

666666
#[doc(alias = "min-latency")]
667-
pub fn connect_min_latency_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
667+
pub fn connect_min_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
668668
&self,
669669
f: F,
670670
) -> SignalHandlerId {
@@ -692,7 +692,7 @@ impl AppSrc {
692692
}
693693

694694
#[doc(alias = "min-percent")]
695-
pub fn connect_min_percent_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
695+
pub fn connect_min_percent_notify<F: Fn(&Self) + Send + Sync + 'static>(
696696
&self,
697697
f: F,
698698
) -> SignalHandlerId {
@@ -720,7 +720,7 @@ impl AppSrc {
720720
}
721721

722722
#[doc(alias = "size")]
723-
pub fn connect_size_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
723+
pub fn connect_size_notify<F: Fn(&Self) + Send + Sync + 'static>(
724724
&self,
725725
f: F,
726726
) -> SignalHandlerId {
@@ -746,7 +746,7 @@ impl AppSrc {
746746
}
747747

748748
#[doc(alias = "stream-type")]
749-
pub fn connect_stream_type_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
749+
pub fn connect_stream_type_notify<F: Fn(&Self) + Send + Sync + 'static>(
750750
&self,
751751
f: F,
752752
) -> SignalHandlerId {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 88c650e)
1+
Generated by gir (https://github.com/gtk-rs/gir @ de679ce)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
33
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

gstreamer-app/sys/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e)
1+
// Generated by gir (https://github.com/gtk-rs/gir @ de679ce)
22
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
33
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
44
// DO NOT EDIT

gstreamer-app/sys/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e)
1+
// Generated by gir (https://github.com/gtk-rs/gir @ de679ce)
22
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
33
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
44
// DO NOT EDIT

gstreamer-app/sys/tests/abi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e)
1+
// Generated by gir (https://github.com/gtk-rs/gir @ de679ce)
22
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
33
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
44
// DO NOT EDIT

gstreamer-app/sys/tests/constant.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e)
1+
// Generated by gir (https://github.com/gtk-rs/gir @ de679ce)
22
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
33
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
44
// DO NOT EDIT

gstreamer-app/sys/tests/layout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated by gir (https://github.com/gtk-rs/gir @ 88c650e)
1+
// Generated by gir (https://github.com/gtk-rs/gir @ de679ce)
22
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
33
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
44
// DO NOT EDIT

0 commit comments

Comments
 (0)