[−][src]Struct gstreamer_base::BaseParse 
This base class is for parser elements that process data and splits it into separate audio/video/whatever frames.
It provides for:
- provides one sink pad and one source pad
 - handles state changes
 - can operate in pull mode or push mode
 - handles seeking in both modes
 - handles events (SEGMENT/EOS/FLUSH)
 - handles queries (POSITION/DURATION/SEEKING/FORMAT/CONVERT)
 - handles flushing
 
The purpose of this base class is to provide the basic functionality of a parser and share a lot of rather complex code.
Description of the parsing mechanism:
Set-up phase
- 
BaseParsecallsBaseParseClass.start() to inform subclass that data processing is about to start now. - 
BaseParseclass callsBaseParseClass.set_sink_caps() to inform the subclass about incoming sinkpad caps. Subclass could already set the srcpad caps accordingly, but this might be delayed until callingBaseParse::finish_framewith a non-queued frame. - 
At least at this point subclass needs to tell the
BaseParseclass how big data chunks it wants to receive (minimum frame size ). It can do this withBaseParseExt::set_min_frame_size. - 
BaseParseclass sets up appropriate data passing mode (pull/push) and starts to process the data. 
Parsing phase
- 
BaseParsegathers at least min_frame_size bytes of data either by pulling it from upstream or collecting buffers in an internalAdapter. - 
A buffer of (at least) min_frame_size bytes is passed to subclass with
BaseParseClass.handle_frame(). Subclass checks the contents and can optionally returngst::FlowReturn::Okalong with an amount of data to be skipped to find a valid frame (which will result in a subsequent DISCONT). If, otherwise, the buffer does not hold a complete frame,BaseParseClass.handle_frame() can merely return and will be called again when additional data is available. In push mode this amounts to an additional input buffer (thus minimal additional latency), in pull mode this amounts to some arbitrary reasonable buffer size increase. 
Of course, BaseParseExt::set_min_frame_size could also be used if
a very specific known amount of additional data is required. If,
however, the buffer holds a complete valid frame, it can pass the
size of this frame to BaseParse::finish_frame.
If acting as a converter, it can also merely indicate consumed input
data while simultaneously providing custom output data. Note that
baseclass performs some processing (such as tracking overall consumed
data rate versus duration) for each finished frame, but other state
is only updated upon each call to BaseParseClass.handle_frame()
(such as tracking upstream input timestamp).
Subclass is also responsible for setting the buffer metadata
(e.g. buffer timestamp and duration, or keyframe if applicable).
(although the latter can also be done by BaseParse if it is
appropriately configured, see below). Frame is provided with
timestamp derived from upstream (as much as generally possible),
duration obtained from configuration (see below), and offset
if meaningful (in pull mode).
Note that BaseParseClass.handle_frame() might receive any small
amount of input data when leftover data is being drained (e.g. at
EOS).
- 
As part of finish frame processing, just prior to actually pushing the buffer in question, it is passed to
BaseParseClass.pre_push_frame() which gives subclass yet one last chance to examine buffer metadata, or to send some custom (tag) events, or to perform custom (segment) filtering. - 
During the parsing process
BaseParseClasswill handle both srcpad and sinkpad events. They will be passed to subclass ifBaseParseClass.sink_event() orBaseParseClass.src_event() implementations have been provided. 
Shutdown phase
BaseParseclass callsBaseParseClass.stop() to inform the subclass that data parsing will be stopped.
Subclass is responsible for providing pad template caps for source and
sink pads. The pads need to be named "sink" and "src". It also needs to
set the fixed caps on srcpad, when the format is ensured (e.g. when
base class calls subclass' BaseParseClass.set_sink_caps() function).
This base class uses gst::Format::Default as a meaning of frames. So,
subclass conversion routine needs to know that conversion from
gst::Format::Time to gst::Format::Default must return the
frame number that can be found from the given byte position.
BaseParse uses subclasses conversion methods also for seeking (or
otherwise uses its own default one, see also below).
Subclass start and stop functions will be called to inform the beginning
and end of data processing.
Things that subclass need to take care of:
- 
Provide pad templates
 - 
Fixate the source pad caps when appropriate
 - 
Inform base class how big data chunks should be retrieved. This is done with
BaseParseExt::set_min_frame_sizefunction. - 
Examine data chunks passed to subclass with
BaseParseClass.handle_frame() and pass proper frame(s) toBaseParse::finish_frame, and setting src pad caps and timestamps on frame. - 
Provide conversion functions
 - 
Update the duration information with
BaseParse::set_duration - 
Optionally passthrough using
BaseParseExt::set_passthrough - 
Configure various baseparse parameters using
BaseParseExt::set_average_bitrate,BaseParseExt::set_syncableandBaseParse::set_frame_rate. - 
In particular, if subclass is unable to determine a duration, but parsing (or specs) yields a frames per seconds rate, then this can be provided to
BaseParseto enable it to cater for buffer time metadata (which will be taken from upstream as much as possible). Internally keeping track of frame durations and respective sizes that have been pushed providesBaseParsewith an estimated bitrate. A defaultBaseParseClass.convert() (used if not overridden) will then use these rates to perform obvious conversions. These rates are also used to update (estimated) duration at regular frame intervals. 
Implements
BaseParseExt, gst::ElementExt, gst::ObjectExt, glib::object::ObjectExt, BaseParseExtManual
Trait Implementations
impl Clone for BaseParse[src]
impl Debug for BaseParse[src]
impl Eq for BaseParse[src]
impl Hash for BaseParse[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher, 1.3.0[src]
H: Hasher,
impl IsA<Element> for BaseParse[src]
impl IsA<Object> for BaseParse[src]
impl Ord for BaseParse[src]
fn cmp(&self, other: &BaseParse) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl<T: ObjectType> PartialEq<T> for BaseParse[src]
impl<T: ObjectType> PartialOrd<T> for BaseParse[src]
fn partial_cmp(&self, other: &T) -> Option<Ordering>[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl Send for BaseParse[src]
impl StaticType for BaseParse[src]
fn static_type() -> Type[src]
impl Sync for BaseParse[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, [src]
Sub: IsA<Super>,
Super: IsA<Super>,
impl<T> Cast for T where
    T: ObjectType, [src]
T: ObjectType,
fn upcast<T>(self) -> T where
    Self: IsA<T>,
    T: ObjectType, [src]
Self: IsA<T>,
T: ObjectType,
fn upcast_ref<T>(&self) -> &T where
    Self: IsA<T>,
    T: ObjectType, [src]
Self: IsA<T>,
T: ObjectType,
fn downcast<T>(self) -> Result<T, Self> where
    Self: CanDowncast<T>,
    T: ObjectType, [src]
Self: CanDowncast<T>,
T: ObjectType,
fn downcast_ref<T>(&self) -> Option<&T> where
    Self: CanDowncast<T>,
    T: ObjectType, [src]
Self: CanDowncast<T>,
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self> where
    T: ObjectType, [src]
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T> where
    T: ObjectType, [src]
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> T where
    T: ObjectType, [src]
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &T where
    T: ObjectType, [src]
T: ObjectType,
impl<O> ElementExt for O where
    O: IsA<Element>, [src]
O: IsA<Element>,
fn abort_state(&self)[src]
fn add_pad<P>(&self, pad: &P) -> Result<(), BoolError> where
    P: IsA<Pad>, [src]
P: IsA<Pad>,
fn create_all_pads(&self)[src]
fn foreach_pad<P>(&self, func: P) -> bool where
    P: FnMut(&Element, &Pad) -> bool, [src]
P: FnMut(&Element, &Pad) -> bool,
fn foreach_sink_pad<P>(&self, func: P) -> bool where
    P: FnMut(&Element, &Pad) -> bool, [src]
P: FnMut(&Element, &Pad) -> bool,
fn foreach_src_pad<P>(&self, func: P) -> bool where
    P: FnMut(&Element, &Pad) -> bool, [src]
P: FnMut(&Element, &Pad) -> bool,
fn get_base_time(&self) -> ClockTime[src]
fn get_bus(&self) -> Option<Bus>[src]
fn get_clock(&self) -> Option<Clock>[src]
fn get_compatible_pad<P>(&self, pad: &P, caps: Option<&Caps>) -> Option<Pad> where
    P: IsA<Pad>, [src]
P: IsA<Pad>,
fn get_compatible_pad_template(
    &self, 
    compattempl: &PadTemplate
) -> Option<PadTemplate>[src]
&self,
compattempl: &PadTemplate
) -> Option<PadTemplate>
fn get_context(&self, context_type: &str) -> Option<Context>[src]
fn get_contexts(&self) -> Vec<Context>[src]
fn get_factory(&self) -> Option<ElementFactory>[src]
fn get_request_pad(&self, name: &str) -> Option<Pad>[src]
fn get_start_time(&self) -> ClockTime[src]
fn get_static_pad(&self, name: &str) -> Option<Pad>[src]
fn is_locked_state(&self) -> bool[src]
fn link<P>(&self, dest: &P) -> Result<(), BoolError> where
    P: IsA<Element>, [src]
P: IsA<Element>,
fn link_filtered<P>(
    &self, 
    dest: &P, 
    filter: Option<&Caps>
) -> Result<(), BoolError> where
    P: IsA<Element>, [src]
&self,
dest: &P,
filter: Option<&Caps>
) -> Result<(), BoolError> where
P: IsA<Element>,
fn link_pads<P>(
    &self, 
    srcpadname: Option<&str>, 
    dest: &P, 
    destpadname: Option<&str>
) -> Result<(), BoolError> where
    P: IsA<Element>, [src]
&self,
srcpadname: Option<&str>,
dest: &P,
destpadname: Option<&str>
) -> Result<(), BoolError> where
P: IsA<Element>,
fn link_pads_filtered<P>(
    &self, 
    srcpadname: Option<&str>, 
    dest: &P, 
    destpadname: Option<&str>, 
    filter: Option<&Caps>
) -> Result<(), BoolError> where
    P: IsA<Element>, [src]
&self,
srcpadname: Option<&str>,
dest: &P,
destpadname: Option<&str>,
filter: Option<&Caps>
) -> Result<(), BoolError> where
P: IsA<Element>,
fn link_pads_full<P>(
    &self, 
    srcpadname: Option<&str>, 
    dest: &P, 
    destpadname: Option<&str>, 
    flags: PadLinkCheck
) -> Result<(), BoolError> where
    P: IsA<Element>, [src]
&self,
srcpadname: Option<&str>,
dest: &P,
destpadname: Option<&str>,
flags: PadLinkCheck
) -> Result<(), BoolError> where
P: IsA<Element>,
fn lost_state(&self)[src]
fn no_more_pads(&self)[src]
fn provide_clock(&self) -> Option<Clock>[src]
fn release_request_pad<P>(&self, pad: &P) where
    P: IsA<Pad>, [src]
P: IsA<Pad>,
fn remove_pad<P>(&self, pad: &P) -> Result<(), BoolError> where
    P: IsA<Pad>, [src]
P: IsA<Pad>,
fn request_pad(
    &self, 
    templ: &PadTemplate, 
    name: Option<&str>, 
    caps: Option<&Caps>
) -> Option<Pad>[src]
&self,
templ: &PadTemplate,
name: Option<&str>,
caps: Option<&Caps>
) -> Option<Pad>
fn set_base_time(&self, time: ClockTime)[src]
fn set_bus(&self, bus: Option<&Bus>)[src]
fn set_clock<P>(&self, clock: Option<&P>) -> Result<(), BoolError> where
    P: IsA<Clock>, [src]
P: IsA<Clock>,
fn set_context(&self, context: &Context)[src]
fn set_locked_state(&self, locked_state: bool) -> bool[src]
fn set_start_time(&self, time: ClockTime)[src]
fn sync_state_with_parent(&self) -> Result<(), BoolError>[src]
fn unlink<P>(&self, dest: &P) where
    P: IsA<Element>, [src]
P: IsA<Element>,
fn unlink_pads<P>(&self, srcpadname: &str, dest: &P, destpadname: &str) where
    P: IsA<Element>, [src]
P: IsA<Element>,
fn connect_no_more_pads<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Send + Sync + Fn(&O), [src]
F: 'static + Send + Sync + Fn(&O),
fn connect_pad_added<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Send + Sync + Fn(&O, &Pad), [src]
F: 'static + Send + Sync + Fn(&O, &Pad),
fn connect_pad_removed<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Send + Sync + Fn(&O, &Pad), [src]
F: 'static + Send + Sync + Fn(&O, &Pad),
impl<O> ElementExtManual for O where
    O: IsA<Element>, [src]
O: IsA<Element>,
fn get_element_class(&self) -> &ElementClass[src]
fn change_state(
    &self, 
    transition: StateChange
) -> Result<StateChangeSuccess, StateChangeError>[src]
&self,
transition: StateChange
) -> Result<StateChangeSuccess, StateChangeError>
fn continue_state(
    &self, 
    ret: StateChangeReturn
) -> Result<StateChangeSuccess, StateChangeError>[src]
&self,
ret: StateChangeReturn
) -> Result<StateChangeSuccess, StateChangeError>
fn get_state(
    &self, 
    timeout: ClockTime
) -> (Result<StateChangeSuccess, StateChangeError>, State, State)[src]
&self,
timeout: ClockTime
) -> (Result<StateChangeSuccess, StateChangeError>, State, State)
fn set_state(
    &self, 
    state: State
) -> Result<StateChangeSuccess, StateChangeError>[src]
&self,
state: State
) -> Result<StateChangeSuccess, StateChangeError>
fn query(&self, query: &mut QueryRef) -> bool[src]
fn send_event(&self, event: Event) -> bool[src]
fn get_metadata<'a>(&self, key: &str) -> Option<&'a str>[src]
fn get_pad_template(&self, name: &str) -> Option<PadTemplate>[src]
fn get_pad_template_list(&self) -> Vec<PadTemplate>[src]
fn set_element_flags(&self, flags: ElementFlags)[src]
fn unset_element_flags(&self, flags: ElementFlags)[src]
fn get_element_flags(&self) -> ElementFlags[src]
fn message_full<T>(
    &self, 
    type_: ElementMessageType, 
    code: T, 
    message: Option<&str>, 
    debug: Option<&str>, 
    file: &str, 
    function: &str, 
    line: u32
) where
    T: MessageErrorDomain, [src]
&self,
type_: ElementMessageType,
code: T,
message: Option<&str>,
debug: Option<&str>,
file: &str,
function: &str,
line: u32
) where
T: MessageErrorDomain,
fn message_full_with_details<T>(
    &self, 
    type_: ElementMessageType, 
    code: T, 
    message: Option<&str>, 
    debug: Option<&str>, 
    file: &str, 
    function: &str, 
    line: u32, 
    structure: Structure
) where
    T: MessageErrorDomain, [src]
&self,
type_: ElementMessageType,
code: T,
message: Option<&str>,
debug: Option<&str>,
file: &str,
function: &str,
line: u32,
structure: Structure
) where
T: MessageErrorDomain,
fn post_message(&self, message: Message) -> Result<(), BoolError>[src]
fn post_error_message(&self, msg: ErrorMessage)[src]
fn iterate_pads(&self) -> Iterator<Pad>[src]
fn iterate_sink_pads(&self) -> Iterator<Pad>[src]
fn iterate_src_pads(&self) -> Iterator<Pad>[src]
fn get_pads(&self) -> Vec<Pad>[src]
fn get_sink_pads(&self) -> Vec<Pad>[src]
fn get_src_pads(&self) -> Vec<Pad>[src]
fn num_pads(&self) -> u16[src]
fn num_sink_pads(&self) -> u16[src]
fn num_src_pads(&self) -> u16[src]
fn add_property_deep_notify_watch(
    &self, 
    property_name: Option<&str>, 
    include_value: bool
) -> NotifyWatchId[src]
&self,
property_name: Option<&str>,
include_value: bool
) -> NotifyWatchId
fn add_property_notify_watch(
    &self, 
    property_name: Option<&str>, 
    include_value: bool
) -> NotifyWatchId[src]
&self,
property_name: Option<&str>,
include_value: bool
) -> NotifyWatchId
fn remove_property_notify_watch(&self, watch_id: NotifyWatchId)[src]
fn query_convert<V, U>(&self, src_val: V) -> Option<U> where
    U: SpecificFormattedValue,
    V: Into<GenericFormattedValue>, [src]
U: SpecificFormattedValue,
V: Into<GenericFormattedValue>,
fn query_convert_generic<V>(
    &self, 
    src_val: V, 
    dest_format: Format
) -> Option<GenericFormattedValue> where
    V: Into<GenericFormattedValue>, [src]
&self,
src_val: V,
dest_format: Format
) -> Option<GenericFormattedValue> where
V: Into<GenericFormattedValue>,
fn query_duration<T>(&self) -> Option<T> where
    T: SpecificFormattedValue, [src]
T: SpecificFormattedValue,
fn query_duration_generic(
    &self, 
    format: Format
) -> Option<GenericFormattedValue>[src]
&self,
format: Format
) -> Option<GenericFormattedValue>
fn query_position<T>(&self) -> Option<T> where
    T: SpecificFormattedValue, [src]
T: SpecificFormattedValue,
fn query_position_generic(
    &self, 
    format: Format
) -> Option<GenericFormattedValue>[src]
&self,
format: Format
) -> Option<GenericFormattedValue>
fn seek<V>(
    &self, 
    rate: f64, 
    flags: SeekFlags, 
    start_type: SeekType, 
    start: V, 
    stop_type: SeekType, 
    stop: V
) -> Result<(), BoolError> where
    V: Into<GenericFormattedValue>, [src]
&self,
rate: f64,
flags: SeekFlags,
start_type: SeekType,
start: V,
stop_type: SeekType,
stop: V
) -> Result<(), BoolError> where
V: Into<GenericFormattedValue>,
fn seek_simple<V>(
    &self, 
    seek_flags: SeekFlags, 
    seek_pos: V
) -> Result<(), BoolError> where
    V: Into<GenericFormattedValue>, [src]
&self,
seek_flags: SeekFlags,
seek_pos: V
) -> Result<(), BoolError> where
V: Into<GenericFormattedValue>,
fn call_async<F>(&self, func: F) where
    F: FnOnce(&O) + Send + 'static, [src]
F: FnOnce(&O) + Send + 'static,
fn call_async_future<F, T>(
    &self, 
    func: F
) -> Pin<Box<dyn Future<Output = T> + 'static + Send + Unpin>> where
    F: FnOnce(&O) -> T + Send + 'static,
    T: Send + 'static, [src]
&self,
func: F
) -> Pin<Box<dyn Future<Output = T> + 'static + Send + Unpin>> where
F: FnOnce(&O) -> T + Send + 'static,
T: Send + 'static,
fn get_current_running_time(&self) -> ClockTime[src]
fn get_current_clock_time(&self) -> ClockTime[src]
fn get_current_state(&self) -> State[src]
fn get_pending_state(&self) -> State[src]
impl<T> From<T> for T[src]
impl<O> GObjectExtManualGst for O where
    O: IsA<Object>, [src]
O: IsA<Object>,
fn set_property_from_str(&self, name: &str, value: &str)[src]
impl<O> GstObjectExt for O where
    O: IsA<Object>, [src]
O: IsA<Object>,
fn default_error(&self, error: &Error, debug: Option<&str>)[src]
fn get_control_rate(&self) -> ClockTime[src]
fn get_name(&self) -> GString[src]
fn get_parent(&self) -> Option<Object>[src]
fn get_path_string(&self) -> GString[src]
fn has_active_control_bindings(&self) -> bool[src]
fn has_ancestor<P>(&self, ancestor: &P) -> bool where
    P: IsA<Object>, [src]
P: IsA<Object>,
fn has_as_ancestor<P>(&self, ancestor: &P) -> bool where
    P: IsA<Object>, [src]
P: IsA<Object>,
fn has_as_parent<P>(&self, parent: &P) -> bool where
    P: IsA<Object>, [src]
P: IsA<Object>,
fn set_control_binding_disabled(&self, property_name: &str, disabled: bool)[src]
fn set_control_bindings_disabled(&self, disabled: bool)[src]
fn set_control_rate(&self, control_rate: ClockTime)[src]
fn set_parent<P>(&self, parent: &P) -> Result<(), BoolError> where
    P: IsA<Object>, [src]
P: IsA<Object>,
fn suggest_next_sync(&self) -> ClockTime[src]
fn sync_values(&self, timestamp: ClockTime) -> Result<(), BoolError>[src]
fn unparent(&self)[src]
fn connect_property_parent_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Send + Sync + Fn(&O), [src]
F: 'static + Send + Sync + Fn(&O),
impl<O> GstObjectExtManual for O where
    O: IsA<Object>, [src]
O: IsA<Object>,
fn connect_deep_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId where
    F: 'static + Send + Sync + Fn(&O, &Object, &ParamSpec), [src]
F: 'static + Send + Sync + Fn(&O, &Object, &ParamSpec),
fn set_object_flags(&self, flags: ObjectFlags)[src]
fn unset_object_flags(&self, flags: ObjectFlags)[src]
fn get_object_flags(&self) -> ObjectFlags[src]
impl<T, U> Into<U> for T where
    U: From<T>, [src]
U: From<T>,
impl<T> ObjectExt for T where
    T: ObjectType, [src]
T: ObjectType,
fn is<U>(&self) -> bool where
    U: StaticType, [src]
U: StaticType,
fn get_type(&self) -> Type[src]
fn get_object_class(&self) -> &ObjectClass[src]
fn set_properties(
    &self, 
    property_values: &[(&str, &dyn ToValue)]
) -> Result<(), BoolError>[src]
&self,
property_values: &[(&str, &dyn ToValue)]
) -> Result<(), BoolError>
fn set_property<'a, N>(
    &self, 
    property_name: N, 
    value: &dyn ToValue
) -> Result<(), BoolError> where
    N: Into<&'a str>, [src]
&self,
property_name: N,
value: &dyn ToValue
) -> Result<(), BoolError> where
N: Into<&'a str>,
fn get_property<'a, N>(&self, property_name: N) -> Result<Value, BoolError> where
    N: Into<&'a str>, [src]
N: Into<&'a str>,
unsafe fn set_qdata<QD>(&self, key: Quark, value: QD) where
    QD: 'static, [src]
QD: 'static,
unsafe fn get_qdata<QD>(&self, key: Quark) -> Option<&QD> where
    QD: 'static, [src]
QD: 'static,
unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD> where
    QD: 'static, [src]
QD: 'static,
unsafe fn set_data<QD>(&self, key: &str, value: QD) where
    QD: 'static, [src]
QD: 'static,
unsafe fn get_data<QD>(&self, key: &str) -> Option<&QD> where
    QD: 'static, [src]
QD: 'static,
unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD> where
    QD: 'static, [src]
QD: 'static,
fn block_signal(&self, handler_id: &SignalHandlerId)[src]
fn unblock_signal(&self, handler_id: &SignalHandlerId)[src]
fn stop_signal_emission(&self, signal_name: &str)[src]
fn disconnect(&self, handler_id: SignalHandlerId)[src]
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId where
    F: 'static + Send + Sync + Fn(&T, &ParamSpec), [src]
F: 'static + Send + Sync + Fn(&T, &ParamSpec),
unsafe fn connect_notify_unsafe<F>(
    &self, 
    name: Option<&str>, 
    f: F
) -> SignalHandlerId where
    F: Fn(&T, &ParamSpec), [src]
&self,
name: Option<&str>,
f: F
) -> SignalHandlerId where
F: Fn(&T, &ParamSpec),
fn notify<'a, N>(&self, property_name: N) where
    N: Into<&'a str>, [src]
N: Into<&'a str>,
fn notify_by_pspec(&self, pspec: &ParamSpec)[src]
fn has_property<'a, N>(&self, property_name: N, type_: Option<Type>) -> bool where
    N: Into<&'a str>, [src]
N: Into<&'a str>,
fn get_property_type<'a, N>(&self, property_name: N) -> Option<Type> where
    N: Into<&'a str>, [src]
N: Into<&'a str>,
fn find_property<'a, N>(&self, property_name: N) -> Option<ParamSpec> where
    N: Into<&'a str>, [src]
N: Into<&'a str>,
fn list_properties(&self) -> Vec<ParamSpec>[src]
fn connect<'a, N, F>(
    &self, 
    signal_name: N, 
    after: bool, 
    callback: F
) -> Result<SignalHandlerId, BoolError> where
    F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
    N: Into<&'a str>, [src]
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
N: Into<&'a str>,
fn connect_local<'a, N, F>(
    &self, 
    signal_name: N, 
    after: bool, 
    callback: F
) -> Result<SignalHandlerId, BoolError> where
    F: Fn(&[Value]) -> Option<Value> + 'static,
    N: Into<&'a str>, [src]
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + 'static,
N: Into<&'a str>,
unsafe fn connect_unsafe<'a, N, F>(
    &self, 
    signal_name: N, 
    after: bool, 
    callback: F
) -> Result<SignalHandlerId, BoolError> where
    F: Fn(&[Value]) -> Option<Value>,
    N: Into<&'a str>, [src]
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value>,
N: Into<&'a str>,
fn emit<'a, N>(
    &self, 
    signal_name: N, 
    args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError> where
    N: Into<&'a str>, [src]
&self,
signal_name: N,
args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError> where
N: Into<&'a str>,
fn downgrade(&self) -> WeakRef<T>[src]
fn bind_property<'a, O, N, M>(
    &'a self, 
    source_property: N, 
    target: &'a O, 
    target_property: M
) -> BindingBuilder<'a> where
    M: Into<&'a str>,
    N: Into<&'a str>,
    O: ObjectType, [src]
&'a self,
source_property: N,
target: &'a O,
target_property: M
) -> BindingBuilder<'a> where
M: Into<&'a str>,
N: Into<&'a str>,
O: ObjectType,
fn ref_count(&self) -> u32[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, [src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
    t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)[src]
t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
fn to_glib_container_from_slice(
    _t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)[src]
_t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
fn to_glib_full_from_slice(_t: &[T]) -> *const GList[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, [src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
    t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)[src]
t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
fn to_glib_container_from_slice(
    _t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)[src]
_t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
fn to_glib_full_from_slice(_t: &[T]) -> *const GPtrArray[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, [src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
    t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)[src]
t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
fn to_glib_container_from_slice(
    t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)[src]
t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
fn to_glib_full_from_slice(t: &[T]) -> *mut GArray[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, [src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
    t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)[src]
t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
fn to_glib_container_from_slice(
    t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)[src]
t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
fn to_glib_full_from_slice(t: &[T]) -> *mut GList[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, [src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
    t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)[src]
t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
fn to_glib_container_from_slice(
    t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)[src]
t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
fn to_glib_full_from_slice(t: &[T]) -> *mut GPtrArray[src]
impl<T> ToOwned for T where
    T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized, [src]
T: ToValue + SetValue + Send + ?Sized,
fn to_send_value(&self) -> SendValue[src]
impl<T> ToValue for T where
    T: SetValue + ?Sized, [src]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
    U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, [src]
U: TryFrom<T>,