pub struct Element(/* private fields */);Trait Implementations§
Source§impl ElementClassExt<Element> for ElementClass
impl ElementClassExt<Element> for ElementClass
fn add_pad_template(&mut self, pad_template: PadTemplate)
fn set_metadata( &mut self, long_name: &str, classification: &str, description: &str, author: &str, )
fn override_vfuncs(&mut self, _: &ClassInitToken)
Source§impl ObjectClassExt<Element> for ElementClass
impl ObjectClassExt<Element> for ElementClass
fn override_vfuncs(&mut self, _: &ClassInitToken)
fn install_properties(&mut self, properties: &[Property<'_>])
fn add_signal(&mut self, name: &str, arg_types: &[Type], ret_type: Type)
fn add_signal_with_accumulator<F>( &mut self, name: &str, arg_types: &[Type], ret_type: Type, accumulator: F, )
fn add_action_signal<F>( &mut self, name: &str, arg_types: &[Type], ret_type: Type, handler: F, )
Source§impl ObjectType for Element
impl ObjectType for Element
const NAME: &'static str = "RsElement"
type ParentType = Element
type ImplType = Box<dyn ElementImpl<Element>>
type InstanceStructType = ElementInstanceStruct<Element>
fn class_init(token: &ClassInitToken, klass: &mut ElementClass)
unsafe fn get_instance(&self) -> *mut Self::InstanceStructType
fn get_impl(&self) -> &Self::ImplType
unsafe fn get_class(&self) -> *const ClassStruct<Self>
Source§impl Ord for Element
impl Ord for Element
Source§impl<T: IsA<Object>> PartialOrd<T> for Element
impl<T: IsA<Object>> PartialOrd<T> for Element
Source§impl StaticType for Element
impl StaticType for Element
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl Eq for Element
impl IsA<Element> for Element
impl IsA<Object> for Element
impl IsA<Object> for Element
impl Send for Element
impl Sync for Element
Auto Trait Implementations§
impl Freeze for Element
impl !RefUnwindSafe for Element
impl Unpin for Element
impl !UnwindSafe for Element
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Cast for T
impl<T> Cast for T
Source§fn upcast_ref<T>(&self) -> &T
fn upcast_ref<T>(&self) -> &T
Upcasts an object to a reference of its superclass or interface
T. Read moreSource§fn downcast<T>(self) -> Result<T, Self>
fn downcast<T>(self) -> Result<T, Self>
Tries to downcast to a subclass or interface implementor
T. Read moreSource§fn downcast_ref<T>(&self) -> Option<&T>
fn downcast_ref<T>(&self) -> Option<&T>
Tries to downcast to a reference of its subclass or interface implementor
T. Read moreSource§fn is<T>(&self) -> boolwhere
T: StaticType,
fn is<T>(&self) -> boolwhere
T: StaticType,
Returns
true if the object is an instance of (can be cast to) T.Source§fn dynamic_cast<T>(self) -> Result<T, Self>
fn dynamic_cast<T>(self) -> Result<T, Self>
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 moreSource§fn dynamic_cast_ref<T>(&self) -> Option<&T>
fn dynamic_cast_ref<T>(&self) -> Option<&T>
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 moreSource§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Super, Sub> Downcast<Sub> for Super
impl<Super, Sub> Downcast<Sub> for Super
Source§fn can_downcast(&self) -> bool
fn can_downcast(&self) -> bool
Checks if it’s possible to downcast to
T. Read moreSource§unsafe fn downcast_unchecked(self) -> Sub
unsafe fn downcast_unchecked(self) -> Sub
Downcasts to
T unconditionally. Read moreSource§unsafe fn downcast_ref_unchecked(&self) -> &Sub
unsafe fn downcast_ref_unchecked(&self) -> &Sub
Downcasts to
&T unconditionally. Read moreSource§impl<T> ElementBase for T
impl<T> ElementBase for T
fn parent_change_state(&self, transition: StateChange) -> StateChangeReturn
fn parent_send_event(&self, event: Event) -> bool
fn parent_query(&self, query: &mut QueryRef) -> bool
fn parent_set_context(&self, context: &Context)
fn catch_panic<T, F: FnOnce(&Self) -> T, G: FnOnce() -> T>( &self, fallback: G, f: F, ) -> T
Source§impl<O> ElementExt for O
impl<O> ElementExt for O
fn abort_state(&self)
fn add_pad<P>(&self, pad: &P) -> Result<(), BoolError>
fn change_state(&self, transition: StateChange) -> StateChangeReturn
fn continue_state(&self, ret: StateChangeReturn) -> StateChangeReturn
fn create_all_pads(&self)
fn get_base_time(&self) -> ClockTime
fn get_bus(&self) -> Option<Bus>
fn get_clock(&self) -> Option<Clock>
fn get_compatible_pad<'a, P, Q>(&self, pad: &P, caps: Q) -> Option<Pad>
fn get_compatible_pad_template( &self, compattempl: &PadTemplate, ) -> Option<PadTemplate>
fn get_context(&self, context_type: &str) -> Option<GstRc<ContextRef>>
fn get_contexts(&self) -> Vec<GstRc<ContextRef>>
fn get_factory(&self) -> Option<ElementFactory>
fn get_request_pad(&self, name: &str) -> Option<Pad>
fn get_start_time(&self) -> ClockTime
fn get_state(&self, timeout: ClockTime) -> (StateChangeReturn, State, State)
fn get_static_pad(&self, name: &str) -> Option<Pad>
fn is_locked_state(&self) -> bool
fn link<P>(&self, dest: &P) -> Result<(), BoolError>
fn link_filtered<'a, P, Q>(&self, dest: &P, filter: Q) -> Result<(), BoolError>
fn link_pads<'a, 'b, P, Q, R>( &self, srcpadname: P, dest: &Q, destpadname: R, ) -> Result<(), BoolError>
fn link_pads_filtered<'a, 'b, 'c, P, Q, R, S>( &self, srcpadname: P, dest: &Q, destpadname: R, filter: S, ) -> Result<(), BoolError>
fn link_pads_full<'a, 'b, P, Q, R>( &self, srcpadname: P, dest: &Q, destpadname: R, flags: PadLinkCheck, ) -> Result<(), BoolError>
fn lost_state(&self)
fn no_more_pads(&self)
fn post_message(&self, message: &GstRc<MessageRef>) -> Result<(), BoolError>
fn provide_clock(&self) -> Option<Clock>
fn release_request_pad<P>(&self, pad: &P)
fn remove_pad<P>(&self, pad: &P) -> Result<(), BoolError>
fn request_pad<'a, 'b, P, Q>( &self, templ: &PadTemplate, name: P, caps: Q, ) -> Option<Pad>
fn set_base_time(&self, time: ClockTime)
fn set_bus<'a, P>(&self, bus: P)
fn set_clock<'a, P, Q>(&self, clock: Q) -> Result<(), BoolError>
fn set_context(&self, context: &GstRc<ContextRef>)
fn set_locked_state(&self, locked_state: bool) -> bool
fn set_start_time(&self, time: ClockTime)
fn set_state(&self, state: State) -> StateChangeReturn
fn sync_state_with_parent(&self) -> Result<(), BoolError>
fn unlink<P>(&self, dest: &P)
fn unlink_pads<P>(&self, srcpadname: &str, dest: &P, destpadname: &str)
fn connect_no_more_pads<F>(&self, f: F) -> SignalHandlerId
fn connect_pad_added<F>(&self, f: F) -> SignalHandlerId
fn connect_pad_removed<F>(&self, f: F) -> SignalHandlerId
Source§impl<O> ElementExtManual for O
impl<O> ElementExtManual for O
fn query(&self, query: &mut QueryRef) -> bool
fn send_event(&self, event: GstRc<EventRef>) -> bool
fn get_metadata<'a>(&self, key: &str) -> Option<&'a str>
fn get_pad_template(&self, name: &str) -> Option<PadTemplate>
fn get_pad_template_list(&self) -> Vec<PadTemplate>
fn message_full<T>(
&self,
type_: ElementMessageType,
code: T,
message: Option<&str>,
debug: Option<&str>,
file: &str,
function: &str,
line: u32,
)where
T: MessageErrorDomain,
fn post_error_message(&self, msg: &ErrorMessage)
fn iterate_pads(&self) -> Iterator<Pad>
fn iterate_sink_pads(&self) -> Iterator<Pad>
fn iterate_src_pads(&self) -> Iterator<Pad>
fn get_pads(&self) -> Vec<Pad>
fn get_sink_pads(&self) -> Vec<Pad>
fn get_src_pads(&self) -> Vec<Pad>
fn query_convert<V, U>(&self, src_val: V) -> Option<U>
fn query_convert_generic<V>(
&self,
src_val: V,
dest_format: Format,
) -> Option<GenericFormattedValue>where
V: Into<GenericFormattedValue>,
fn query_duration<T>(&self) -> Option<T>where
T: SpecificFormattedValue,
fn query_duration_generic( &self, format: Format, ) -> Option<GenericFormattedValue>
fn query_position<T>(&self) -> Option<T>where
T: SpecificFormattedValue,
fn query_position_generic( &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>,
fn seek_simple<V>(
&self,
seek_flags: SeekFlags,
seek_pos: V,
) -> Result<(), BoolError>where
V: Into<GenericFormattedValue>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<O> GObjectExtManualGst for O
impl<O> GObjectExtManualGst for O
fn set_property_from_str(&self, name: &str, value: &str)
Source§impl<O> GstObjectExt for O
impl<O> GstObjectExt for O
fn default_error<'a, P>(&self, error: &Error, debug: P)
fn get_control_rate(&self) -> ClockTime
fn get_name(&self) -> String
fn get_parent(&self) -> Option<Object>
fn get_path_string(&self) -> String
fn has_active_control_bindings(&self) -> bool
fn has_ancestor<P>(&self, ancestor: &P) -> bool
fn has_as_ancestor<P>(&self, ancestor: &P) -> bool
fn has_as_parent<P>(&self, parent: &P) -> bool
fn set_control_binding_disabled(&self, property_name: &str, disabled: bool)
fn set_control_bindings_disabled(&self, disabled: bool)
fn set_control_rate(&self, control_rate: ClockTime)
fn set_name(&self, name: &str) -> Result<(), BoolError>
fn set_parent<P>(&self, parent: &P) -> Result<(), BoolError>
fn suggest_next_sync(&self) -> ClockTime
fn sync_values(&self, timestamp: ClockTime) -> Result<(), BoolError>
fn unparent(&self)
fn connect_property_name_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_parent_notify<F>(&self, f: F) -> SignalHandlerId
Source§impl<O> GstObjectExtManual for O
impl<O> GstObjectExtManual for O
Source§impl<T> ObjectBase for T
impl<T> ObjectBase for T
fn parent_constructed(&self)
Source§impl<T> ObjectExt for T
impl<T> ObjectExt for T
fn get_type(&self) -> Type
fn set_property<'a, N>( &self, property_name: N, value: &dyn ToValue, ) -> Result<(), BoolError>
fn get_property<'a, N>(&self, property_name: N) -> Result<Value, BoolError>
fn block_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn stop_signal_emission(&self, signal_name: &str)
fn disconnect(&self, handler_id: SignalHandlerId)
fn connect_notify<'a, P, F>(&self, name: P, f: F) -> SignalHandlerId
fn notify<'a, N>(&self, property_name: N)
fn notify_by_pspec(&self, pspec: &ParamSpec)
fn has_property<'a, N>( &self, property_name: N, type_: Option<Type>, ) -> Result<(), BoolError>
fn get_property_type<'a, N>(&self, property_name: N) -> Option<Type>
fn find_property<'a, N>(&self, property_name: N) -> Option<ParamSpec>
fn list_properties(&self) -> Vec<ParamSpec>
fn connect<'a, N, F>( &self, signal_name: N, after: bool, callback: F, ) -> Result<SignalHandlerId, BoolError>
fn emit<'a, N>( &self, signal_name: N, args: &[&dyn ToValue], ) -> Result<Option<Value>, BoolError>
fn downgrade(&self) -> WeakRef<T>
fn bind_property<'a, O, N, M>( &'a self, source_property: N, target: &'a O, target_property: M, ) -> BindingBuilder<'a, T, O>
fn ref_count(&self) -> u32
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue clone of self.