[−]Struct gstreamer_base::AggregatorPad
pub struct AggregatorPad(_, _);
Pads managed by a GstAggregor
subclass.
This class used to live in gst-plugins-bad and was moved to core.
Feature: v1_14
Implements
AggregatorPadExt
, gst::PadExt
, gst::ObjectExt
, glib::object::ObjectExt
Trait Implementations
impl Clone for AggregatorPad
[+]
fn clone(&self) -> AggregatorPad
[−]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src][−]
Performs copy-assignment from source
. Read more
impl Debug for AggregatorPad
[+]
fn fmt(&self, f: &mut Formatter) -> Result
[−]
Formats the value using the given formatter. Read more
impl Eq for AggregatorPad
impl Hash for AggregatorPad
[+]
fn hash<__H: Hasher>(&self, state: &mut __H)
[−]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src][−]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl IsA<Object> for AggregatorPad
impl IsA<Pad> for AggregatorPad
impl Ord for AggregatorPad
[+]
fn cmp(&self, other: &AggregatorPad) -> Ordering
[−]
This method returns an [Ordering
] between self
and other
. Read more
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src][−]
Compares and returns the maximum of two values. Read more
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src][−]
Compares and returns the minimum of two values. Read more
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src][−]
clamp
)Restrict a value to a certain interval. Read more
impl<T: ObjectType> PartialEq<T> for AggregatorPad
[+]
fn eq(&self, other: &T) -> bool
[−]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src][−]
This method tests for !=
.
impl<T: ObjectType> PartialOrd<T> for AggregatorPad
[+]
fn partial_cmp(&self, other: &T) -> Option<Ordering>
[−]
This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src][−]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src][−]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src][−]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src][−]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Send for AggregatorPad
[src]
impl StaticType for AggregatorPad
[+]
impl Sync for AggregatorPad
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
[src][−]
Gets the TypeId
of self
. Read more
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
fn borrow(&self) -> &T
[src][−]
Immutably borrows from an owned value. Read more
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src][−]
Mutably borrows from an owned value. Read more
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,
Upcasts an object to a superclass or interface T
. Read more
fn upcast_ref<T>(&self) -> &T where
Self: IsA<T>,
T: ObjectType,
[src][−]
Self: IsA<T>,
T: ObjectType,
Upcasts an object to a reference of its superclass or interface T
. Read more
fn downcast<T>(self) -> Result<T, Self> where
Self: CanDowncast<T>,
T: ObjectType,
[src][−]
Self: CanDowncast<T>,
T: ObjectType,
Tries to downcast to a subclass or interface implementor T
. Read more
fn downcast_ref<T>(&self) -> Option<&T> where
Self: CanDowncast<T>,
T: ObjectType,
[src][−]
Self: CanDowncast<T>,
T: ObjectType,
Tries to downcast to a reference of its subclass or interface implementor T
. Read more
fn dynamic_cast<T>(self) -> Result<T, Self> where
T: ObjectType,
[src][−]
T: ObjectType,
Tries to cast to an object of type T
. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while downcast
and upcast
will do many checks at compile-time already. Read more
fn dynamic_cast_ref<T>(&self) -> Option<&T> where
T: ObjectType,
[src][−]
T: ObjectType,
Tries to cast to reference to an object of type T
. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while downcast
and upcast
will do many checks at compile-time already. Read more
unsafe fn unsafe_cast<T>(self) -> T where
T: ObjectType,
[src][−]
T: ObjectType,
Casts to T
unconditionally. Read more
unsafe fn unsafe_cast_ref<T>(&self) -> &T where
T: ObjectType,
[src][−]
T: ObjectType,
Casts to &T
unconditionally. Read more
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][−]
A default error function that uses g_printerr
to display the error message and the optional debug string.. Read more
fn get_control_rate(&self) -> ClockTime
[src][−]
Obtain the control-rate for this self
. Audio processing Element
objects will use this rate to sub-divide their processing loop and call GstObjectExt::sync_values
in between. The length of the processing segment should be up to control
-rate nanoseconds. Read more
fn get_name(&self) -> GString
[src][−]
Returns a copy of the name of self
. Caller should g_free
the return value after usage. For a nameless object, this returns None
, which you can safely g_free
as well. Read more
fn get_parent(&self) -> Option<Object>
[src][−]
Returns the parent of self
. This function increases the refcount of the parent object so you should GstObjectExt::unref
it after usage. Read more
fn get_path_string(&self) -> GString
[src][−]
Generates a string describing the path of self
in the object hierarchy. Only useful (or used) for debugging. Read more
fn has_active_control_bindings(&self) -> bool
[src][−]
Check if the self
has active controlled properties. Read more
fn has_ancestor<P>(&self, ancestor: &P) -> bool where
P: IsA<Object>,
[src][−]
P: IsA<Object>,
Check if self
has an ancestor ancestor
somewhere up in the hierarchy. One can e.g. check if a Element
is inside a Pipeline
. Read more
fn has_as_ancestor<P>(&self, ancestor: &P) -> bool where
P: IsA<Object>,
[src][−]
P: IsA<Object>,
Check if self
has an ancestor ancestor
somewhere up in the hierarchy. One can e.g. check if a Element
is inside a Pipeline
. ## ancestor
a Object
to check as ancestor Read more
fn has_as_parent<P>(&self, parent: &P) -> bool where
P: IsA<Object>,
[src][−]
P: IsA<Object>,
Check if parent
is the parent of self
. E.g. a Element
can check if it owns a given Pad
. ## parent
a Object
to check as parent Read more
fn set_control_binding_disabled(&self, property_name: &str, disabled: bool)
[src][−]
This function is used to disable the control bindings on a property for some time, i.e. GstObjectExt::sync_values
will do nothing for the property. ## property_name
property to disable ## disabled
boolean that specifies whether to disable the controller or not. Read more
fn set_control_bindings_disabled(&self, disabled: bool)
[src][−]
This function is used to disable all controlled properties of the self
for some time, i.e. GstObjectExt::sync_values
will do nothing. ## disabled
boolean that specifies whether to disable the controller or not. Read more
fn set_control_rate(&self, control_rate: ClockTime)
[src][−]
Change the control-rate for this self
. Audio processing Element
objects will use this rate to sub-divide their processing loop and call GstObjectExt::sync_values
in between. The length of the processing segment should be up to control
-rate nanoseconds. Read more
fn set_name(&self, name: &str) -> Result<(), BoolError>
[src][−]
Sets the name of self
, or gives self
a guaranteed unique name (if name
is None
). This function makes a copy of the provided name, so the caller retains ownership of the name it sent. ## name
new name of object Read more
fn set_parent<P>(&self, parent: &P) -> Result<(), BoolError> where
P: IsA<Object>,
[src][−]
P: IsA<Object>,
Sets the parent of self
to parent
. The object's reference count will be incremented, and any floating reference will be removed (see Object::ref_sink
). ## parent
new parent of object Read more
fn suggest_next_sync(&self) -> ClockTime
[src][−]
Returns a suggestion for timestamps where buffers should be split to get best controller results. Read more
fn sync_values(&self, timestamp: ClockTime) -> Result<(), BoolError>
[src][−]
Sets the properties of the object, according to the GstControlSources
that (maybe) handle them and for the given timestamp. Read more
fn unparent(&self)
[src][−]
Clear the parent of self
, removing the associated reference. This function decreases the refcount of self
. Read more
fn connect_property_name_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&O),
[src]
F: 'static + Send + Sync + Fn(&O),
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,
Returns true
if the object is an instance of (can be cast to) T
.
fn get_type(&self) -> Type
[src]
fn get_object_class(&self) -> &ObjectClass
[src]
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>,
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>
) -> Result<(), BoolError> where
N: Into<&'a str>,
[src]
&self,
property_name: N,
type_: Option<Type>
) -> Result<(), BoolError> where
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<O> PadExt for O where
O: IsA<Pad>,
[src][+]
O: IsA<Pad>,
fn activate_mode(&self, mode: PadMode, active: bool) -> Result<(), BoolError>
[src][−]
Activates or deactivates the given pad in mode
via dispatching to the pad's activatemodefunc. For use from within pad activation functions only. Read more
fn can_link<P>(&self, sinkpad: &P) -> bool where
P: IsA<Pad>,
[src][−]
P: IsA<Pad>,
Checks if the source pad and the sink pad are compatible so they can be linked. ## sinkpad
the sink Pad
. Read more
fn check_reconfigure(&self) -> bool
[src][−]
Check and clear the PadFlags::NeedReconfigure
flag on self
and return true
if the flag was set. Read more
fn create_stream_id<P>(
&self,
parent: &P,
stream_id: Option<&str>
) -> Option<GString> where
P: IsA<Element>,
[src][−]
&self,
parent: &P,
stream_id: Option<&str>
) -> Option<GString> where
P: IsA<Element>,
Creates a stream-id for the source Pad
self
by combining the upstream information with the optional stream_id
of the stream of self
. self
must have a parent Element
and which must have zero or one sinkpad. stream_id
can only be None
if the parent element of self
has only a single source pad. Read more
fn forward<P>(&self, forward: P) -> bool where
P: FnMut(&Pad) -> bool,
[src][−]
P: FnMut(&Pad) -> bool,
Calls forward
for all internally linked pads of self
. This function deals with dynamically changing internal pads and will make sure that the forward
function is only called once for each pad. Read more
fn get_allowed_caps(&self) -> Option<Caps>
[src][−]
Gets the capabilities of the allowed media types that can flow through self
and its peer. Read more
fn get_current_caps(&self) -> Option<Caps>
[src][−]
Gets the capabilities currently configured on self
with the last EventType::Caps
event. Read more
fn get_direction(&self) -> PadDirection
[src][−]
Gets the direction of the pad. The direction of the pad is decided at construction time so this function does not take the LOCK. Read more
fn get_offset(&self) -> i64
[src][−]
Get the offset applied to the running time of self
. self
has to be a source pad. Read more
fn get_pad_template(&self) -> Option<PadTemplate>
[src][−]
Gets the template for self
. Read more
fn get_pad_template_caps(&self) -> Option<Caps>
[src][−]
Gets the capabilities for self
's template. Read more
fn get_parent_element(&self) -> Option<Element>
[src][−]
Gets the parent of self
, cast to a Element
. If a self
has no parent or its parent is not an element, return None
. Read more
fn get_peer(&self) -> Option<Pad>
[src][−]
Gets the peer of self
. This function refs the peer pad so you need to unref it after use. Read more
fn get_sticky_event(&self, event_type: EventType, idx: u32) -> Option<Event>
[src][−]
Returns a new reference of the sticky event of type event_type
from the event. ## event_type
the EventType
that should be retrieved. ## idx
the index of the event Read more
fn get_stream(&self) -> Option<Stream>
[src][−]
Returns the current Stream
for the self
, or None
if none has been set yet, i.e. the pad has not received a stream-start event yet. Read more
fn get_stream_id(&self) -> Option<GString>
[src][−]
Returns the current stream-id for the self
, or None
if none has been set yet, i.e. the pad has not received a stream-start event yet. Read more
fn get_task_state(&self) -> TaskState
[src][−]
Get self
task state. If no task is currently set, TaskState::Stopped
is returned. Read more
fn has_current_caps(&self) -> bool
[src][−]
Check if self
has caps set on it with a EventType::Caps
event. Read more
fn is_active(&self) -> bool
[src][−]
Query if a pad is active Read more
fn is_blocked(&self) -> bool
[src][−]
Checks if the pad is blocked or not. This function returns the last requested state of the pad. It is not certain that the pad is actually blocking at this point (see PadExt::is_blocking
). Read more
fn is_blocking(&self) -> bool
[src][−]
Checks if the pad is blocking or not. This is a guaranteed state of whether the pad is actually blocking on a Buffer
or a Event
. Read more
fn is_linked(&self) -> bool
[src][−]
Checks if a self
is linked to another pad or not. Read more
fn link_maybe_ghosting<P>(&self, sink: &P) -> Result<(), BoolError> where
P: IsA<Pad>,
[src][−]
P: IsA<Pad>,
Links self
to sink
, creating any GhostPad
's in between as necessary. Read more
fn link_maybe_ghosting_full<P>(
&self,
sink: &P,
flags: PadLinkCheck
) -> Result<(), BoolError> where
P: IsA<Pad>,
[src][−]
&self,
sink: &P,
flags: PadLinkCheck
) -> Result<(), BoolError> where
P: IsA<Pad>,
Links self
to sink
, creating any GhostPad
's in between as necessary. Read more
fn mark_reconfigure(&self)
[src][−]
Mark a pad for needing reconfiguration. The next call to PadExt::check_reconfigure
will return true
after this call. Read more
fn needs_reconfigure(&self) -> bool
[src][−]
Check the PadFlags::NeedReconfigure
flag on self
and return true
if the flag was set. Read more
fn pause_task(&self) -> Result<(), BoolError>
[src][−]
Pause the task of self
. This function will also wait until the function executed by the task is finished if this function is not called from the task function. Read more
fn peer_query_accept_caps(&self, caps: &Caps) -> bool
[src][−]
Check if the peer of self
accepts caps
. If self
has no peer, this function returns true
. ## caps
a Caps
to check on the pad Read more
fn peer_query_caps(&self, filter: Option<&Caps>) -> Option<Caps>
[src][−]
Gets the capabilities of the peer connected to this pad. Similar to PadExt::query_caps
. Read more
fn query_accept_caps(&self, caps: &Caps) -> bool
[src][−]
Check if the given pad accepts the caps. ## caps
a Caps
to check on the pad Read more
fn query_caps(&self, filter: Option<&Caps>) -> Option<Caps>
[src][−]
Gets the capabilities this pad can produce or consume. Note that this method doesn't necessarily return the caps set by sending a Event::new_caps
- use PadExt::get_current_caps
for that instead. gst_pad_query_caps returns all possible caps a pad can operate with, using the pad's CAPS query function, If the query fails, this function will return filter
, if not None
, otherwise ANY. Read more
fn set_active(&self, active: bool) -> Result<(), BoolError>
[src][−]
Activates or deactivates the given pad. Normally called from within core state change functions. Read more
fn set_offset(&self, offset: i64)
[src][−]
Set the offset that will be applied to the running time of self
. ## offset
the offset Read more
fn stop_task(&self) -> Result<(), BoolError>
[src][−]
Stop the task of self
. This function will also make sure that the function executed by the task will effectively stop if not called from the GstTaskFunction. Read more
fn unlink<P>(&self, sinkpad: &P) -> Result<(), BoolError> where
P: IsA<Pad>,
[src][−]
P: IsA<Pad>,
Unlinks the source pad from the sink pad. Will emit the Pad::unlinked
signal on both pads. ## sinkpad
the sink Pad
to unlink. Read more
fn use_fixed_caps(&self)
[src][−]
A helper function you can use that sets the FIXED_CAPS flag This way the default CAPS query will always return the negotiated caps or in case the pad is not negotiated, the padtemplate caps. Read more
fn get_property_caps(&self) -> Option<Caps>
[src]
fn get_property_template(&self) -> Option<PadTemplate>
[src]
fn set_property_template(&self, template: Option<&PadTemplate>)
[src]
fn connect_linked<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&O, &Pad),
[src][−]
F: 'static + Send + Sync + Fn(&O, &Pad),
Signals that a pad has been linked to the peer pad. ## peer
the peer pad that has been connected Read more
fn connect_unlinked<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&O, &Pad),
[src][−]
F: 'static + Send + Sync + Fn(&O, &Pad),
Signals that a pad has been unlinked from the peer pad. ## peer
the peer pad that has been disconnected Read more
fn connect_property_caps_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&O),
[src]
F: 'static + Send + Sync + Fn(&O),
fn connect_property_offset_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&O),
[src]
F: 'static + Send + Sync + Fn(&O),
fn connect_property_template_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&O),
[src]
F: 'static + Send + Sync + Fn(&O),
impl<O> PadExtManual for O where
O: IsA<Pad>,
[src][+]
O: IsA<Pad>,
fn add_probe<F>(&self, mask: PadProbeType, func: F) -> Option<PadProbeId> where
F: Fn(&O, &mut PadProbeInfo) -> PadProbeReturn + Send + Sync + 'static,
[src]
F: Fn(&O, &mut PadProbeInfo) -> PadProbeReturn + Send + Sync + 'static,
fn remove_probe(&self, id: PadProbeId)
[src]
fn chain(&self, buffer: Buffer) -> Result<FlowSuccess, FlowError>
[src]
fn push(&self, buffer: Buffer) -> Result<FlowSuccess, FlowError>
[src]
fn chain_list(&self, list: BufferList) -> Result<FlowSuccess, FlowError>
[src]
fn push_list(&self, list: BufferList) -> Result<FlowSuccess, FlowError>
[src]
fn get_range(&self, offset: u64, size: u32) -> Result<Buffer, FlowError>
[src]
fn pull_range(&self, offset: u64, size: u32) -> Result<Buffer, FlowError>
[src]
fn query(&self, query: &mut QueryRef) -> bool
[src]
fn peer_query(&self, query: &mut QueryRef) -> bool
[src]
fn query_default<P>(&self, parent: Option<&P>, query: &mut QueryRef) -> bool where
P: IsA<Object>,
[src]
P: IsA<Object>,
fn proxy_query_accept_caps(&self, query: &mut QueryRef) -> bool
[src]
fn proxy_query_caps(&self, query: &mut QueryRef) -> bool
[src]
fn event_default<P>(&self, parent: Option<&P>, event: Event) -> bool where
P: IsA<Object>,
[src]
P: IsA<Object>,
fn push_event(&self, event: Event) -> bool
[src]
fn send_event(&self, event: Event) -> bool
[src]
fn get_last_flow_return(&self) -> Result<FlowSuccess, FlowError>
[src]
fn iterate_internal_links(&self) -> Iterator<Pad>
[src]
fn iterate_internal_links_default<P>(&self, parent: Option<&P>) -> Iterator<Pad> where
P: IsA<Object>,
[src]
P: IsA<Object>,
fn link<P>(&self, sinkpad: &P) -> Result<PadLinkSuccess, PadLinkError> where
P: IsA<Pad>,
[src]
P: IsA<Pad>,
fn link_full<P>(
&self,
sinkpad: &P,
flags: PadLinkCheck
) -> Result<PadLinkSuccess, PadLinkError> where
P: IsA<Pad>,
[src]
&self,
sinkpad: &P,
flags: PadLinkCheck
) -> Result<PadLinkSuccess, PadLinkError> where
P: IsA<Pad>,
fn stream_lock(&self) -> StreamLock
[src]
fn set_activate_function<F>(&self, func: F) where
F: Fn(&O, Option<&Object>) -> Result<(), LoggableError> + Send + Sync + 'static,
[src]
F: Fn(&O, Option<&Object>) -> Result<(), LoggableError> + Send + Sync + 'static,
fn set_activatemode_function<F>(&self, func: F) where
F: Fn(&O, Option<&Object>, PadMode, bool) -> Result<(), LoggableError> + Send + Sync + 'static,
[src]
F: Fn(&O, Option<&Object>, PadMode, bool) -> Result<(), LoggableError> + Send + Sync + 'static,
fn set_chain_function<F>(&self, func: F) where
F: Fn(&O, Option<&Object>, Buffer) -> Result<FlowSuccess, FlowError> + Send + Sync + 'static,
[src]
F: Fn(&O, Option<&Object>, Buffer) -> Result<FlowSuccess, FlowError> + Send + Sync + 'static,
fn set_chain_list_function<F>(&self, func: F) where
F: Fn(&O, Option<&Object>, BufferList) -> Result<FlowSuccess, FlowError> + Send + Sync + 'static,
[src]
F: Fn(&O, Option<&Object>, BufferList) -> Result<FlowSuccess, FlowError> + Send + Sync + 'static,
fn set_event_function<F>(&self, func: F) where
F: Fn(&O, Option<&Object>, Event) -> bool + Send + Sync + 'static,
[src]
F: Fn(&O, Option<&Object>, Event) -> bool + Send + Sync + 'static,
fn set_event_full_function<F>(&self, func: F) where
F: Fn(&O, Option<&Object>, Event) -> Result<FlowSuccess, FlowError> + Send + Sync + 'static,
[src]
F: Fn(&O, Option<&Object>, Event) -> Result<FlowSuccess, FlowError> + Send + Sync + 'static,
fn set_getrange_function<F>(&self, func: F) where
F: Fn(&O, Option<&Object>, u64, u32) -> Result<Buffer, FlowError> + Send + Sync + 'static,
[src]
F: Fn(&O, Option<&Object>, u64, u32) -> Result<Buffer, FlowError> + Send + Sync + 'static,
fn set_iterate_internal_links_function<F>(&self, func: F) where
F: Fn(&O, Option<&Object>) -> Iterator<Pad> + Send + Sync + 'static,
[src]
F: Fn(&O, Option<&Object>) -> Iterator<Pad> + Send + Sync + 'static,
fn set_link_function<F>(&self, func: F) where
F: Fn(&O, Option<&Object>, &Pad) -> Result<PadLinkSuccess, PadLinkError> + Send + Sync + 'static,
[src]
F: Fn(&O, Option<&Object>, &Pad) -> Result<PadLinkSuccess, PadLinkError> + Send + Sync + 'static,
fn set_query_function<F>(&self, func: F) where
F: Fn(&O, Option<&Object>, &mut QueryRef) -> bool + Send + Sync + 'static,
[src]
F: Fn(&O, Option<&Object>, &mut QueryRef) -> bool + Send + Sync + 'static,
fn set_unlink_function<F>(&self, func: F) where
F: Fn(&O, Option<&Object>) + Send + Sync + 'static,
[src]
F: Fn(&O, Option<&Object>) + Send + Sync + 'static,
fn start_task<F>(&self, func: F) -> Result<(), BoolError> where
F: 'static + Send + FnMut(),
[src]
F: 'static + Send + FnMut(),
fn peer_query_convert<V, U>(&self, src_val: V) -> Option<U> where
U: SpecificFormattedValue,
V: Into<GenericFormattedValue>,
[src]
U: SpecificFormattedValue,
V: Into<GenericFormattedValue>,
fn peer_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 peer_query_duration<T>(&self) -> Option<T> where
T: SpecificFormattedValue,
[src]
T: SpecificFormattedValue,
fn peer_query_duration_generic(
&self,
format: Format
) -> Option<GenericFormattedValue>
[src]
&self,
format: Format
) -> Option<GenericFormattedValue>
fn peer_query_position<T>(&self) -> Option<T> where
T: SpecificFormattedValue,
[src]
T: SpecificFormattedValue,
fn peer_query_position_generic(
&self,
format: Format
) -> Option<GenericFormattedValue>
[src]
&self,
format: Format
) -> Option<GenericFormattedValue>
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 get_mode(&self) -> PadMode
[src]
fn sticky_events_foreach<F>(&self, func: F) where
F: FnMut(Event) -> Result<Option<Event>, Option<Event>>,
[src]
F: FnMut(Event) -> Result<Option<Event>, Option<Event>>,
fn store_sticky_event(&self, event: &Event) -> Result<FlowSuccess, FlowError>
[src]
fn set_pad_flags(&self, flags: PadFlags)
[src]
fn unset_pad_flags(&self, flags: PadFlags)
[src]
fn get_pad_flags(&self) -> PadFlags
[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][−]
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)
[src][−]
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src][+]
T: ToValue + SetValue + Send + ?Sized,
fn to_send_value(&self) -> SendValue
[src][−]
Returns a SendValue
clone of self
.
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src][+]
T: SetValue + ?Sized,
fn to_value(&self) -> Value
[src][−]
Returns a Value
clone of self
.
fn to_value_type(&self) -> Type
[src][−]
Returns the type identifer of self
. Read more
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][−]
Performs the conversion.
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,