Struct gstreamer_base::BaseSink
source · pub struct BaseSink(_, _);
Trait Implementations§
source§impl Ord for BaseSink
impl Ord for BaseSink
source§impl<T: IsA<Object>> PartialOrd<T> for BaseSink
impl<T: IsA<Object>> PartialOrd<T> for BaseSink
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 BaseSink
impl StaticType for BaseSink
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for BaseSink
impl IsA<Element> for BaseSink
impl IsA<Object> for BaseSink
impl IsA<Object> for BaseSink
impl Send for BaseSink
impl Sync for BaseSink
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> ElementExt for Owhere
O: IsA<Element> + IsA<Object>,
impl<O> ElementExt for Owhere
O: IsA<Element> + IsA<Object>,
fn abort_state(&self)
fn add_pad<P>(&self, pad: &P) -> Result<(), BoolError>where
P: IsA<Pad>,
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>where
P: IsA<Pad>,
Q: Into<Option<&'a GstRc<CapsRef>>>,
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>, Global>
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>where
P: IsA<Element>,
fn link_filtered<'a, P, Q>(&self, dest: &P, filter: Q) -> Result<(), BoolError>where
P: IsA<Element>,
Q: Into<Option<&'a GstRc<CapsRef>>>,
fn link_pads<'a, 'b, P, Q, R>(
&self,
srcpadname: P,
dest: &Q,
destpadname: R
) -> Result<(), BoolError>where
P: Into<Option<&'a str>>,
Q: IsA<Element>,
R: Into<Option<&'b str>>,
fn link_pads_filtered<'a, 'b, 'c, P, Q, R, S>(
&self,
srcpadname: P,
dest: &Q,
destpadname: R,
filter: S
) -> Result<(), BoolError>where
P: Into<Option<&'a str>>,
Q: IsA<Element>,
R: Into<Option<&'b str>>,
S: Into<Option<&'c GstRc<CapsRef>>>,
fn link_pads_full<'a, 'b, P, Q, R>(
&self,
srcpadname: P,
dest: &Q,
destpadname: R,
flags: PadLinkCheck
) -> Result<(), BoolError>where
P: Into<Option<&'a str>>,
Q: IsA<Element>,
R: Into<Option<&'b str>>,
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)where
P: IsA<Pad>,
fn remove_pad<P>(&self, pad: &P) -> Result<(), BoolError>where
P: IsA<Pad>,
fn request_pad<'a, 'b, P, Q>(
&self,
templ: &PadTemplate,
name: P,
caps: Q
) -> Option<Pad>where
P: Into<Option<&'a str>>,
Q: Into<Option<&'b GstRc<CapsRef>>>,
fn set_base_time(&self, time: ClockTime)
fn set_bus<'a, P>(&self, bus: P)where
P: Into<Option<&'a Bus>>,
fn set_clock<'a, P, Q>(&self, clock: Q) -> Result<(), BoolError>where
P: 'a + IsA<Clock>,
Q: Into<Option<&'a P>>,
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)where
P: IsA<Element>,
fn unlink_pads<P>(&self, srcpadname: &str, dest: &P, destpadname: &str)where
P: IsA<Element>,
fn connect_no_more_pads<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O) + Send + Sync,
fn connect_pad_added<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O, &Pad) + Send + Sync,
fn connect_pad_removed<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O, &Pad) + Send + Sync,
source§impl<O> ElementExtManual for Owhere
O: IsA<Element>,
impl<O> ElementExtManual for Owhere
O: IsA<Element>,
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, Global>
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, Global>
fn get_sink_pads(&self) -> Vec<Pad, Global>
fn get_src_pads(&self) -> Vec<Pad, Global>
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 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<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> 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> 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> 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
.