pub struct ServoSrc {
cat: DebugCategory,
appsrc: AppSrc,
srcpad: GhostPad,
position: Mutex<Position>,
seeking: AtomicBool,
size: Mutex<Option<i64>>,
}
Fields§
§cat: DebugCategory
§appsrc: AppSrc
§srcpad: GhostPad
§position: Mutex<Position>
§seeking: AtomicBool
§size: Mutex<Option<i64>>
Implementations§
source§impl ServoSrc
impl ServoSrc
pub fn set_size(&self, size: i64)
pub fn set_seek_offset<O: IsA<Object>>(&self, parent: &O, offset: u64) -> bool
pub fn set_seek_done(&self)
pub fn push_buffer<O: IsA<Object>>( &self, parent: &O, data: Vec<u8>, ) -> Result<FlowSuccess, FlowError>
pub fn end_of_stream(&self) -> Result<FlowSuccess, FlowError>
pub fn set_callbacks(&self, callbacks: AppSrcCallbacks)
fn query(&self, pad: &GhostPad, query: &mut QueryRef) -> bool
source§impl ServoSrc
impl ServoSrc
sourcefn register_type()
fn register_type()
Registers the type only once.
Trait Implementations§
source§impl BinImpl for ServoSrc
impl BinImpl for ServoSrc
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 ServoSrc
impl ElementImpl for ServoSrc
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 ServoSrc
impl ObjectImpl for ServoSrc
source§fn constructed(&self)
fn constructed(&self)
Constructed. Read more
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 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 ServoSrc
impl ObjectSubclass for ServoSrc
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 ObjectSubclassType for ServoSrc
impl ObjectSubclassType for ServoSrc
source§impl URIHandlerImpl for ServoSrc
impl URIHandlerImpl for ServoSrc
impl GstObjectImpl for ServoSrc
Auto Trait Implementations§
impl !Freeze for ServoSrc
impl RefUnwindSafe for ServoSrc
impl Send for ServoSrc
impl Sync for ServoSrc
impl Unpin for ServoSrc
impl UnwindSafe for ServoSrc
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
.