gstreamer_rtsp_server/auto/
rtsp_onvif_client.rs

1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
4// DO NOT EDIT
5
6use crate::{ffi, RTSPClient};
7#[cfg(feature = "v1_18")]
8#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
9use glib::{prelude::*, translate::*};
10
11glib::wrapper! {
12    #[doc(alias = "GstRTSPOnvifClient")]
13    pub struct RTSPOnvifClient(Object<ffi::GstRTSPOnvifClient, ffi::GstRTSPOnvifClientClass>) @extends RTSPClient;
14
15    match fn {
16        type_ => || ffi::gst_rtsp_onvif_client_get_type(),
17    }
18}
19
20impl RTSPOnvifClient {
21    pub const NONE: Option<&'static RTSPOnvifClient> = None;
22
23    #[cfg(feature = "v1_18")]
24    #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
25    #[doc(alias = "gst_rtsp_onvif_client_new")]
26    pub fn new() -> RTSPOnvifClient {
27        assert_initialized_main_thread!();
28        unsafe { RTSPClient::from_glib_full(ffi::gst_rtsp_onvif_client_new()).unsafe_cast() }
29    }
30}
31
32#[cfg(feature = "v1_18")]
33#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
34impl Default for RTSPOnvifClient {
35    fn default() -> Self {
36        Self::new()
37    }
38}
39
40unsafe impl Send for RTSPOnvifClient {}
41unsafe impl Sync for RTSPOnvifClient {}