pub struct ServoMediaStreamSrc {
cat: DebugCategory,
audio_proxysrc: Element,
audio_srcpad: GhostPad,
video_proxysrc: Element,
video_srcpad: GhostPad,
flow_combiner: Arc<Mutex<UniqueFlowCombiner>>,
has_audio_stream: Arc<AtomicBool>,
has_video_stream: Arc<AtomicBool>,
}
Fields§
§cat: DebugCategory
§audio_proxysrc: Element
§audio_srcpad: GhostPad
§video_proxysrc: Element
§video_srcpad: GhostPad
§flow_combiner: Arc<Mutex<UniqueFlowCombiner>>
§has_audio_stream: Arc<AtomicBool>
§has_video_stream: Arc<AtomicBool>
Implementations§
source§impl ServoMediaStreamSrc
impl ServoMediaStreamSrc
pub fn set_stream( &self, stream: &mut GStreamerMediaStream, src: &Element, only_stream: bool, )
fn setup_proxy_src( &self, stream_type: MediaStreamType, sink: &Element, src: &Element, only_stream: bool, )
source§impl ServoMediaStreamSrc
impl ServoMediaStreamSrc
sourcefn register_type()
fn register_type()
Registers the type only once.
Trait Implementations§
source§impl BinImpl for ServoMediaStreamSrc
impl BinImpl for ServoMediaStreamSrc
fn add_element(&self, element: &Element) -> Result<(), LoggableError>
fn remove_element(&self, element: &Element) -> Result<(), LoggableError>
fn do_latency(&self) -> Result<(), LoggableError>
fn handle_message(&self, message: Message)
source§impl ElementImpl for ServoMediaStreamSrc
impl ElementImpl for ServoMediaStreamSrc
fn metadata() -> Option<&'static ElementMetadata>
fn pad_templates() -> &'static [PadTemplate]
fn change_state( &self, transition: StateChange, ) -> Result<StateChangeSuccess, StateChangeError>
fn request_new_pad( &self, templ: &PadTemplate, name: Option<&str>, caps: Option<&Caps>, ) -> Option<Pad>
fn release_pad(&self, pad: &Pad)
fn send_event(&self, event: Event) -> bool
fn query(&self, query: &mut QueryRef) -> bool
fn set_context(&self, context: &Context)
fn set_clock(&self, clock: Option<&Clock>) -> bool
fn provide_clock(&self) -> Option<Clock>
fn post_message(&self, msg: Message) -> bool
source§impl ObjectImpl for ServoMediaStreamSrc
impl ObjectImpl for ServoMediaStreamSrc
source§fn properties() -> &'static [ParamSpec]
fn properties() -> &'static [ParamSpec]
Properties installed for this type.
source§fn set_property(&self, _id: usize, _value: &Value, _pspec: &ParamSpec)
fn set_property(&self, _id: usize, _value: &Value, _pspec: &ParamSpec)
Property setter. Read more
source§fn constructed(&self)
fn constructed(&self)
Constructed. Read more
source§fn notify(&self, pspec: &ParamSpec)
fn notify(&self, pspec: &ParamSpec)
Function to be called when property change is notified for with
self.notify("property")
.fn dispatch_properties_changed(&self, pspecs: &[ParamSpec])
source§impl ObjectSubclass for ServoMediaStreamSrc
impl ObjectSubclass for ServoMediaStreamSrc
source§type Class = ClassStruct<ServoMediaStreamSrc>
type Class = ClassStruct<ServoMediaStreamSrc>
The C class struct. Read more
source§type Instance = InstanceStruct<ServoMediaStreamSrc>
type Instance = InstanceStruct<ServoMediaStreamSrc>
The C instance struct. Read more
source§type Type = ServoMediaStreamSrc
type Type = ServoMediaStreamSrc
Wrapper around this subclass defined with
wrapper!
source§type ParentType = Bin
type ParentType = Bin
Parent Rust type to inherit from.
source§type Interfaces = (URIHandler,)
type Interfaces = (URIHandler,)
List of interfaces implemented by this type.
source§fn with_class(_klass: &Self::Class) -> Self
fn with_class(_klass: &Self::Class) -> Self
Constructor. Read more
source§const ALLOW_NAME_CONFLICT: bool = false
const ALLOW_NAME_CONFLICT: bool = false
Allow name conflicts for this class. Read more
source§fn type_init(_type_: &mut InitializingType<Self>)
fn type_init(_type_: &mut InitializingType<Self>)
Additional type initialization. Read more
source§fn class_init(_klass: &mut Self::Class)
fn class_init(_klass: &mut Self::Class)
Class initialization. Read more
source§fn instance_init(_obj: &InitializingObject<Self>)
fn instance_init(_obj: &InitializingObject<Self>)
Performs additional instance initialization. Read more
source§impl URIHandlerImpl for ServoMediaStreamSrc
impl URIHandlerImpl for ServoMediaStreamSrc
impl GstObjectImpl for ServoMediaStreamSrc
Auto Trait Implementations§
impl Freeze for ServoMediaStreamSrc
impl RefUnwindSafe for ServoMediaStreamSrc
impl Send for ServoMediaStreamSrc
impl Sync for ServoMediaStreamSrc
impl Unpin for ServoMediaStreamSrc
impl UnwindSafe for ServoMediaStreamSrc
Blanket Implementations§
source§impl<T> BinImplExt for Twhere
T: BinImpl,
impl<T> BinImplExt for Twhere
T: BinImpl,
fn parent_add_element(&self, element: &Element) -> Result<(), LoggableError>
fn parent_remove_element(&self, element: &Element) -> Result<(), LoggableError>
fn parent_do_latency(&self) -> Result<(), LoggableError>
fn parent_handle_message(&self, message: Message)
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> ElementImplExt for Twhere
T: ElementImpl,
impl<T> ElementImplExt for Twhere
T: ElementImpl,
fn parent_change_state( &self, transition: StateChange, ) -> Result<StateChangeSuccess, StateChangeError>
fn parent_request_new_pad( &self, templ: &PadTemplate, name: Option<&str>, caps: Option<&Caps>, ) -> Option<Pad>
fn parent_release_pad(&self, pad: &Pad)
fn parent_send_event(&self, event: Event) -> bool
fn parent_query(&self, query: &mut QueryRef) -> bool
fn parent_set_context(&self, context: &Context)
fn parent_set_clock(&self, clock: Option<&Clock>) -> bool
fn parent_provide_clock(&self) -> Option<Clock>
fn parent_post_message(&self, msg: Message) -> bool
fn panicked(&self) -> &AtomicBool
fn catch_panic<R, F, G>(&self, fallback: G, f: F) -> R
fn catch_panic_future<R, F, G>( &self, fallback: F, fut: G, ) -> CatchPanic<Self, F, G>
fn catch_panic_pad_function<R, F, G>( parent: Option<&Object>, fallback: G, f: F, ) -> R
fn post_error_message(&self, msg: ErrorMessage)
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> ObjectImplExt for Twhere
T: ObjectImpl,
impl<T> ObjectImplExt for Twhere
T: ObjectImpl,
source§fn parent_constructed(&self)
fn parent_constructed(&self)
Chain up to the parent class’ implementation of
glib::Object::constructed()
.source§fn parent_notify(&self, pspec: &ParamSpec)
fn parent_notify(&self, pspec: &ParamSpec)
Chain up to the parent class’ implementation of
glib::Object::notify()
.source§fn parent_dispatch_properties_changed(&self, pspecs: &[ParamSpec])
fn parent_dispatch_properties_changed(&self, pspecs: &[ParamSpec])
Chain up to the parent class’ implementation of
glib::Object::dispatch_properties_changed()
.source§fn signal_chain_from_overridden(
&self,
token: &SignalClassHandlerToken,
values: &[Value],
) -> Option<Value>
fn signal_chain_from_overridden( &self, token: &SignalClassHandlerToken, values: &[Value], ) -> Option<Value>
Chain up to parent class signal handler.
source§impl<T> ObjectSubclassExt for Twhere
T: ObjectSubclass,
impl<T> ObjectSubclassExt for Twhere
T: ObjectSubclass,
source§fn instance(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
fn instance(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
👎Deprecated: Use obj() instead
Returns the corresponding object instance.
source§fn from_instance(obj: &<T as ObjectSubclass>::Type) -> &T
fn from_instance(obj: &<T as ObjectSubclass>::Type) -> &T
👎Deprecated: Use from_obj() instead
Returns the implementation from an instance.
source§fn obj(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
fn obj(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
Returns the corresponding object instance. Read more
source§fn from_obj(obj: &<T as ObjectSubclass>::Type) -> &T
fn from_obj(obj: &<T as ObjectSubclass>::Type) -> &T
Returns the implementation from an instance. Read more
source§fn ref_counted(&self) -> ObjectImplRef<T>
fn ref_counted(&self) -> ObjectImplRef<T>
Returns a new reference-counted wrapper around
self
.