[][src]Struct gstreamer_webrtc::WebRTCDataChannel

pub struct WebRTCDataChannel(_, _);

Feature: v1_18

Implements

glib::object::ObjectExt

Implementations

impl WebRTCDataChannel[src]

pub fn close(&self)[src]

Close the self.

Feature: v1_18

pub fn on_buffered_amount_low(&self)[src]

Signal that the data channel reached a low buffered amount. Should only be used by subclasses.

Feature: v1_18

pub fn on_close(&self)[src]

Signal that the data channel was closed. Should only be used by subclasses.

Feature: v1_18

pub fn on_message_data(&self, data: Option<&Bytes>)[src]

Signal that the data channel received a data message. Should only be used by subclasses.

Feature: v1_18

data

a glib::Bytes or None

pub fn on_message_string(&self, str: Option<&str>)[src]

Signal that the data channel received a string message. Should only be used by subclasses.

Feature: v1_18

str

a string or None

pub fn on_open(&self)[src]

Signal that the data channel was opened. Should only be used by subclasses.

Feature: v1_18

pub fn send_data(&self, data: Option<&Bytes>)[src]

Send data as a data message over self.

Feature: v1_18

data

a glib::Bytes or None

pub fn send_string(&self, str: Option<&str>)[src]

Send str as a string message over self.

Feature: v1_18

str

a string or None

pub fn get_property_buffered_amount(&self) -> u64[src]

pub fn get_property_buffered_amount_low_threshold(&self) -> u64[src]

pub fn set_property_buffered_amount_low_threshold(
    &self,
    buffered_amount_low_threshold: u64
)
[src]

pub fn get_property_id(&self) -> i32[src]

pub fn get_property_label(&self) -> Option<GString>[src]

pub fn get_property_max_packet_lifetime(&self) -> i32[src]

pub fn get_property_max_retransmits(&self) -> i32[src]

pub fn get_property_negotiated(&self) -> bool[src]

pub fn get_property_ordered(&self) -> bool[src]

pub fn get_property_priority(&self) -> WebRTCPriorityType[src]

pub fn get_property_protocol(&self) -> Option<GString>[src]

pub fn get_property_ready_state(&self) -> WebRTCDataChannelState[src]

pub fn connect_close<F: Fn(&WebRTCDataChannel) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Close the data channel

pub fn emit_close(&self)[src]

pub fn connect_on_buffered_amount_low<F: Fn(&WebRTCDataChannel) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_on_close<F: Fn(&WebRTCDataChannel) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_on_error<F: Fn(&WebRTCDataChannel, &Error) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

error

the glib::Error thrown

pub fn connect_on_message_data<F: Fn(&WebRTCDataChannel, Option<&Bytes>) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

data

a glib::Bytes of the data received

pub fn connect_on_message_string<F: Fn(&WebRTCDataChannel, Option<&str>) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

data

the data received as a string

pub fn connect_on_open<F: Fn(&WebRTCDataChannel) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_send_data<F: Fn(&WebRTCDataChannel, Option<&Bytes>) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

data

a glib::Bytes with the data

pub fn emit_send_data(&self, data: Option<&Bytes>)[src]

pub fn connect_send_string<F: Fn(&WebRTCDataChannel, Option<&str>) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

data

the data to send as a string

pub fn emit_send_string(&self, data: Option<&str>)[src]

pub fn connect_property_buffered_amount_notify<F: Fn(&WebRTCDataChannel) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_buffered_amount_low_threshold_notify<F: Fn(&WebRTCDataChannel) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_ready_state_notify<F: Fn(&WebRTCDataChannel) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

impl WebRTCDataChannel[src]

pub fn on_error(&self, error: Error)[src]

Signal that the data channel had an error. Should only be used by subclasses.

Feature: v1_18

error

a glib::Error

Trait Implementations

impl Clone for WebRTCDataChannel[src]

impl Debug for WebRTCDataChannel[src]

impl Eq for WebRTCDataChannel[src]

impl Hash for WebRTCDataChannel[src]

impl Ord for WebRTCDataChannel[src]

impl<T: ObjectType> PartialEq<T> for WebRTCDataChannel[src]

impl<T: ObjectType> PartialOrd<T> for WebRTCDataChannel[src]

impl Send for WebRTCDataChannel[src]

impl StaticType for WebRTCDataChannel[src]

impl Sync for WebRTCDataChannel[src]

Auto Trait Implementations

impl RefUnwindSafe for WebRTCDataChannel

impl Unpin for WebRTCDataChannel

impl UnwindSafe for WebRTCDataChannel

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

impl<T> From<T> for T[src]

impl<O> GObjectExtManualGst for O where
    O: IsA<Object>, 
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.