Struct gst_plugin::ghost_pad::GhostPad
source · pub struct GhostPad(_, _);
Trait Implementations§
source§impl GhostPadClassExt<GhostPad> for GhostPadClass
impl GhostPadClassExt<GhostPad> for GhostPadClass
fn override_vfuncs(&mut self, _: &ClassInitToken)
source§impl ObjectClassExt<GhostPad> for GhostPadClass
impl ObjectClassExt<GhostPad> for GhostPadClass
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
)where
F: 'static + Fn(&mut Value, &Value) -> bool + Send + Sync,
fn add_action_signal<F>(
&mut self,
name: &str,
arg_types: &[Type],
ret_type: Type,
handler: F
)where
F: 'static + Fn(&[Value]) -> Option<Value> + Send + Sync,
source§impl ObjectType for GhostPad
impl ObjectType for GhostPad
const NAME: &'static str = "RsGhostPad"
type ParentType = GhostPad
type ImplType = Box<dyn GhostPadImpl<GhostPad> + 'static, Global>
type InstanceStructType = InstanceStruct<GhostPad>
fn class_init(token: &ClassInitToken, klass: &mut GhostPadClass)
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 GhostPad
impl Ord for GhostPad
source§impl PadClassExt<GhostPad> for GhostPadClass
impl PadClassExt<GhostPad> for GhostPadClass
fn override_vfuncs(&mut self, _: &ClassInitToken)
source§impl<T: IsA<Object>> PartialOrd<T> for GhostPad
impl<T: IsA<Object>> PartialOrd<T> for GhostPad
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for GhostPad
impl StaticType for GhostPad
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for GhostPad
impl IsA<GhostPad> for GhostPad
impl IsA<Object> for GhostPad
impl IsA<Object> for GhostPad
impl IsA<Pad> for GhostPad
impl IsA<ProxyPad> for GhostPad
impl Send for GhostPad
impl Sync for GhostPad
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Cast for Twhere
T: IsA<Object>,
impl<T> Cast for Twhere
T: IsA<Object>,
source§fn upcast<T>(self) -> Twhere
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
Self: IsA<T>,
Upcasts an object to a superclass or interface
T
. Read moresource§fn upcast_ref<T>(&self) -> &Twhere
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface
T
. Read moresource§fn downcast<T>(self) -> Result<T, Self>where
Self: Sized + Downcast<T>,
fn downcast<T>(self) -> Result<T, Self>where
Self: Sized + Downcast<T>,
Tries to downcast to a subclass or interface implementor
T
. Read moresource§fn downcast_ref<T>(&self) -> Option<&T>where
Self: Sized + Downcast<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
Self: Sized + Downcast<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>where
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
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>where
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
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<Super, Sub> Downcast<Sub> for Superwhere
Super: IsA<Super>,
Sub: IsA<Super>,
impl<Super, Sub> Downcast<Sub> for Superwhere
Super: IsA<Super>,
Sub: IsA<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<O> GObjectExtManualGst for Owhere
O: IsA<Object>,
impl<O> GObjectExtManualGst for Owhere
O: IsA<Object>,
fn set_property_from_str(&self, name: &str, value: &str)
source§impl<O> GhostPadExt for Owhere
O: IsA<GhostPad>,
impl<O> GhostPadExt for Owhere
O: IsA<GhostPad>,
source§impl<O> GstObjectExt for Owhere
O: IsA<Object> + IsA<Object>,
impl<O> GstObjectExt for Owhere
O: IsA<Object> + IsA<Object>,
fn default_error<'a, P>(&self, error: &Error, debug: P)where
P: Into<Option<&'a str>>,
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) -> boolwhere
P: IsA<Object>,
fn has_as_ancestor<P>(&self, ancestor: &P) -> boolwhere
P: IsA<Object>,
fn has_as_parent<P>(&self, parent: &P) -> boolwhere
P: IsA<Object>,
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>where
P: IsA<Object>,
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) -> SignalHandlerIdwhere
F: 'static + Fn(&O) + Send + Sync,
fn connect_property_parent_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O) + Send + Sync,
source§impl<T> ObjectBase for Twhere
T: IsA<Object> + ObjectType,
impl<T> ObjectBase for Twhere
T: IsA<Object> + ObjectType,
fn parent_constructed(&self)
source§impl<T> ObjectExt for Twhere
T: IsA<Object> + SetValue,
impl<T> ObjectExt for Twhere
T: IsA<Object> + SetValue,
fn get_type(&self) -> Type
fn set_property<'a, N>(
&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>,
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) -> SignalHandlerIdwhere
P: Into<Option<&'a str>>,
F: 'static + Fn(&T, &ParamSpec) + Send + Sync,
fn notify<'a, N>(&self, property_name: N)where
N: Into<&'a str>,
fn notify_by_pspec(&self, pspec: &ParamSpec)
fn has_property<'a, N>(
&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>,
fn find_property<'a, N>(&self, property_name: N) -> Option<ParamSpec>where
N: Into<&'a str>,
fn list_properties(&self) -> Vec<ParamSpec, Global>
fn connect<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError>where
N: Into<&'a str>,
F: 'static + Fn(&[Value]) -> Option<Value> + Send + Sync,
fn emit<'a, N>(
&self,
signal_name: N,
args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError>where
N: Into<&'a str>,
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>where
O: IsA<Object>,
N: Into<&'a str>,
M: Into<&'a str>,
fn ref_count(&self) -> u32
source§impl<T> PadBase for Twhere
T: IsA<Pad> + ObjectType,
impl<T> PadBase for Twhere
T: IsA<Pad> + ObjectType,
fn parent_linked(&self, peer: &Pad)
fn parent_unlinked(&self, peer: &Pad)
source§impl<O> PadExt for Owhere
O: IsA<Pad> + IsA<Object>,
impl<O> PadExt for Owhere
O: IsA<Pad> + IsA<Object>,
fn activate_mode(&self, mode: PadMode, active: bool) -> Result<(), BoolError>
fn can_link<P>(&self, sinkpad: &P) -> boolwhere
P: IsA<Pad>,
fn check_reconfigure(&self) -> bool
fn create_stream_id<'a, P, Q>(&self, parent: &P, stream_id: Q) -> Option<String>where
P: IsA<Element>,
Q: Into<Option<&'a str>>,
fn get_allowed_caps(&self) -> Option<GstRc<CapsRef>>
fn get_current_caps(&self) -> Option<GstRc<CapsRef>>
fn get_direction(&self) -> PadDirection
fn get_last_flow_return(&self) -> FlowReturn
fn get_offset(&self) -> i64
fn get_pad_template(&self) -> Option<PadTemplate>
fn get_pad_template_caps(&self) -> Option<GstRc<CapsRef>>
fn get_parent_element(&self) -> Option<Element>
fn get_peer(&self) -> Option<Pad>
fn get_sticky_event(
&self,
event_type: EventType,
idx: u32
) -> Option<GstRc<EventRef>>
fn get_stream_id(&self) -> Option<String>
fn has_current_caps(&self) -> bool
fn is_active(&self) -> bool
fn is_blocked(&self) -> bool
fn is_blocking(&self) -> bool
fn is_linked(&self) -> bool
fn link<P>(&self, sinkpad: &P) -> PadLinkReturnwhere
P: IsA<Pad>,
fn link_full<P>(&self, sinkpad: &P, flags: PadLinkCheck) -> PadLinkReturnwhere
P: IsA<Pad>,
fn mark_reconfigure(&self)
fn needs_reconfigure(&self) -> bool
fn pause_task(&self) -> Result<(), BoolError>
fn peer_query_accept_caps(&self, caps: &GstRc<CapsRef>) -> bool
fn peer_query_caps<'a, P>(&self, filter: P) -> Option<GstRc<CapsRef>>where
P: Into<Option<&'a GstRc<CapsRef>>>,
fn query_accept_caps(&self, caps: &GstRc<CapsRef>) -> bool
fn query_caps<'a, P>(&self, filter: P) -> Option<GstRc<CapsRef>>where
P: Into<Option<&'a GstRc<CapsRef>>>,
fn set_active(&self, active: bool) -> Result<(), BoolError>
fn set_offset(&self, offset: i64)
fn stop_task(&self) -> Result<(), BoolError>
fn store_sticky_event(&self, event: &GstRc<EventRef>) -> FlowReturn
fn unlink<P>(&self, sinkpad: &P) -> Result<(), BoolError>where
P: IsA<Pad>,
fn use_fixed_caps(&self)
fn get_property_caps(&self) -> Option<GstRc<CapsRef>>
fn get_property_template(&self) -> Option<PadTemplate>
fn set_property_template(&self, template: Option<&PadTemplate>)
fn connect_linked<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O, &Pad) + Send + Sync,
fn connect_unlinked<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O, &Pad) + Send + Sync,
fn connect_property_caps_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O) + Send + Sync,
fn connect_property_direction_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O) + Send + Sync,
fn connect_property_offset_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O) + Send + Sync,
fn connect_property_template_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O) + Send + Sync,
source§impl<O> PadExtManual for Owhere
O: IsA<Pad>,
impl<O> PadExtManual for Owhere
O: IsA<Pad>,
fn add_probe<F>(&self, mask: PadProbeType, func: F) -> Option<PadProbeId>where
F: 'static + Fn(&Pad, &mut PadProbeInfo<'_>) -> PadProbeReturn + Send + Sync,
fn remove_probe(&self, id: PadProbeId)
fn chain(&self, buffer: GstRc<BufferRef>) -> FlowReturn
fn push(&self, buffer: GstRc<BufferRef>) -> FlowReturn
fn chain_list(&self, list: GstRc<BufferListRef>) -> FlowReturn
fn push_list(&self, list: GstRc<BufferListRef>) -> FlowReturn
fn get_range(
&self,
offset: u64,
size: u32
) -> Result<GstRc<BufferRef>, FlowReturn>
fn pull_range(
&self,
offset: u64,
size: u32
) -> Result<GstRc<BufferRef>, FlowReturn>
fn query(&self, query: &mut QueryRef) -> bool
fn peer_query(&self, query: &mut QueryRef) -> bool
fn query_default<'a, P, Q>(&self, parent: Q, query: &mut QueryRef) -> boolwhere
P: 'a + IsA<Object>,
Q: Into<Option<&'a P>>,
fn proxy_query_accept_caps(&self, query: &mut QueryRef) -> bool
fn proxy_query_caps(&self, query: &mut QueryRef) -> bool
fn event_default<'a, P, Q>(&self, parent: Q, event: GstRc<EventRef>) -> boolwhere
P: 'a + IsA<Object>,
Q: Into<Option<&'a P>>,
fn push_event(&self, event: GstRc<EventRef>) -> bool
fn send_event(&self, event: GstRc<EventRef>) -> bool
fn iterate_internal_links(&self) -> Iterator<Pad>
fn iterate_internal_links_default<'a, P, Q>(&self, parent: Q) -> Iterator<Pad>where
P: 'a + IsA<Object>,
Q: Into<Option<&'a P>>,
fn stream_lock(&self) -> StreamLock
fn set_activate_function<F>(&self, func: F)where
F: 'static + Fn(&Pad, &Option<Object>) -> bool + Send + Sync,
fn set_activatemode_function<F>(&self, func: F)where
F: 'static + Fn(&Pad, &Option<Object>, PadMode, bool) -> bool + Send + Sync,
fn set_chain_function<F>(&self, func: F)where
F: 'static + Fn(&Pad, &Option<Object>, GstRc<BufferRef>) -> FlowReturn + Send + Sync,
fn set_chain_list_function<F>(&self, func: F)where
F: 'static + Fn(&Pad, &Option<Object>, GstRc<BufferListRef>) -> FlowReturn + Send + Sync,
fn set_event_function<F>(&self, func: F)where
F: 'static + Fn(&Pad, &Option<Object>, GstRc<EventRef>) -> bool + Send + Sync,
fn set_event_full_function<F>(&self, func: F)where
F: 'static + Fn(&Pad, &Option<Object>, GstRc<EventRef>) -> FlowReturn + Send + Sync,
fn set_getrange_function<F>(&self, func: F)where
F: 'static + Fn(&Pad, &Option<Object>, u64, u32) -> Result<GstRc<BufferRef>, FlowReturn> + Send + Sync,
fn set_iterate_internal_links_function<F>(&self, func: F)where
F: 'static + Fn(&Pad, &Option<Object>) -> Iterator<Pad> + Send + Sync,
fn set_link_function<F>(&self, func: F)where
F: 'static + Fn(&Pad, &Option<Object>, &Pad) -> PadLinkReturn + Send + Sync,
fn set_query_function<F>(&self, func: F)where
F: 'static + Fn(&Pad, &Option<Object>, &mut QueryRef) -> bool + Send + Sync,
fn set_unlink_function<F>(&self, func: F)where
F: 'static + Fn(&Pad, &Option<Object>) + Send + Sync,
fn start_task<F>(&self, func: F) -> Result<(), BoolError>where
F: 'static + FnMut() + Send,
fn peer_query_convert<V, U>(&self, src_val: V) -> Option<U>where
V: Into<GenericFormattedValue>,
U: SpecificFormattedValue,
fn peer_query_convert_generic<V>(
&self,
src_val: V,
dest_format: Format
) -> Option<GenericFormattedValue>where
V: Into<GenericFormattedValue>,
fn peer_query_duration<T>(&self) -> Option<T>where
T: SpecificFormattedValue,
fn peer_query_duration_generic(
&self,
format: Format
) -> Option<GenericFormattedValue>
fn peer_query_position<T>(&self) -> Option<T>where
T: SpecificFormattedValue,
fn peer_query_position_generic(
&self,
format: Format
) -> Option<GenericFormattedValue>
fn query_convert<V, U>(&self, src_val: V) -> Option<U>where
V: Into<GenericFormattedValue>,
U: SpecificFormattedValue,
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 get_mode(&self) -> PadMode
fn sticky_events_foreach<F>(&self, func: F)where
F: FnMut(GstRc<EventRef>) -> Result<Option<GstRc<EventRef>>, Option<GstRc<EventRef>>>,
source§impl<O> ProxyPadExt for Owhere
O: IsA<ProxyPad>,
impl<O> ProxyPadExt for Owhere
O: IsA<ProxyPad>,
fn get_internal(&self) -> Option<ProxyPad>
source§impl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.