1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
// Take a look at the license at the top of the repository in the LICENSE file.

use crate::WebRTCDataChannel;
use glib::translate::*;

impl WebRTCDataChannel {
    /// Signal that the data channel had an error. Should only be used by subclasses.
    /// ## `error`
    /// a [`crate::glib::Error`]
    pub fn on_error(&self, error: glib::Error) {
        unsafe {
            ffi::gst_webrtc_data_channel_on_error(self.to_glib_none().0, error.into_raw());
        }
    }
}