servo_media_gstreamer::source::imp

Struct ServoSrc

source
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

source

pub fn set_size(&self, size: i64)

source

pub fn set_seek_offset<O: IsA<Object>>(&self, parent: &O, offset: u64) -> bool

source

pub fn set_seek_done(&self)

source

pub fn push_buffer<O: IsA<Object>>( &self, parent: &O, data: Vec<u8>, ) -> Result<FlowSuccess, FlowError>

source

pub fn end_of_stream(&self) -> Result<FlowSuccess, FlowError>

source

pub fn set_callbacks(&self, callbacks: AppSrcCallbacks)

source

fn query(&self, pad: &GhostPad, query: &mut QueryRef) -> bool

source§

impl ServoSrc

source

fn register_type()

Registers the type only once.

source§

impl ServoSrc

source

pub fn downgrade(&self) -> <Self as Downgrade>::Weak

Trait Implementations§

source§

impl BinImpl for ServoSrc

source§

impl ElementImpl for ServoSrc

source§

fn metadata() -> Option<&'static ElementMetadata>

source§

fn pad_templates() -> &'static [PadTemplate]

source§

fn change_state( &self, transition: StateChange, ) -> Result<StateChangeSuccess, StateChangeError>

source§

fn request_new_pad( &self, templ: &PadTemplate, name: Option<&str>, caps: Option<&Caps>, ) -> Option<Pad>

source§

fn release_pad(&self, pad: &Pad)

source§

fn send_event(&self, event: Event) -> bool

source§

fn query(&self, query: &mut QueryRef) -> bool

source§

fn set_context(&self, context: &Context)

source§

fn set_clock(&self, clock: Option<&Clock>) -> bool

source§

fn provide_clock(&self) -> Option<Clock>

source§

fn post_message(&self, msg: Message) -> bool

source§

impl ObjectImpl for ServoSrc

source§

fn constructed(&self)

Constructed. Read more
source§

fn properties() -> &'static [ParamSpec]

Properties installed for this type.
source§

fn signals() -> &'static [Signal]

Signals installed for this type.
source§

fn set_property(&self, _id: usize, _value: &Value, _pspec: &ParamSpec)

Property setter. Read more
source§

fn property(&self, _id: usize, _pspec: &ParamSpec) -> Value

Property getter. Read more
source§

fn dispose(&self)

Disposes of the object. Read more
source§

fn notify(&self, pspec: &ParamSpec)

Function to be called when property change is notified for with self.notify("property").
source§

fn dispatch_properties_changed(&self, pspecs: &[ParamSpec])

source§

impl ObjectSubclass for ServoSrc

source§

const NAME: &'static str = "ServoSrc"

GObject type name. Read more
source§

type Class = ClassStruct<ServoSrc>

The C class struct. Read more
source§

type Instance = InstanceStruct<ServoSrc>

The C instance struct. Read more
source§

type Type = ServoSrc

Wrapper around this subclass defined with wrapper!
source§

type ParentType = Bin

Parent Rust type to inherit from.
source§

type Interfaces = (URIHandler,)

List of interfaces implemented by this type.
source§

fn with_class(klass: &Self::Class) -> Self

Constructor. Read more
source§

const ABSTRACT: bool = false

If this subclass is an abstract class or not. Read more
source§

const ALLOW_NAME_CONFLICT: bool = false

Allow name conflicts for this class. Read more
source§

fn type_init(_type_: &mut InitializingType<Self>)

Additional type initialization. Read more
source§

fn class_init(_klass: &mut Self::Class)

Class initialization. Read more
source§

fn new() -> Self

Constructor. Read more
source§

fn instance_init(_obj: &InitializingObject<Self>)

Performs additional instance initialization. Read more
source§

impl ObjectSubclassType for ServoSrc

source§

fn type_data() -> NonNull<TypeData>

Storage for the type-specific data used during registration.
source§

fn type_() -> Type

Returns the glib::Type ID of the subclass. Read more
source§

impl URIHandlerImpl for ServoSrc

source§

const URI_TYPE: URIType = gst::URIType::Src

source§

fn protocols() -> &'static [&'static str]

source§

fn uri(&self) -> Option<String>

source§

fn set_uri(&self, uri: &str) -> Result<(), Error>

source§

impl GstObjectImpl for ServoSrc

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> BinImplExt for T
where T: BinImpl,

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> ElementImplExt for T
where T: ElementImpl,

source§

fn parent_change_state( &self, transition: StateChange, ) -> Result<StateChangeSuccess, StateChangeError>

source§

fn parent_request_new_pad( &self, templ: &PadTemplate, name: Option<&str>, caps: Option<&Caps>, ) -> Option<Pad>

source§

fn parent_release_pad(&self, pad: &Pad)

source§

fn parent_send_event(&self, event: Event) -> bool

source§

fn parent_query(&self, query: &mut QueryRef) -> bool

source§

fn parent_set_context(&self, context: &Context)

source§

fn parent_set_clock(&self, clock: Option<&Clock>) -> bool

source§

fn parent_provide_clock(&self) -> Option<Clock>

source§

fn parent_post_message(&self, msg: Message) -> bool

source§

fn panicked(&self) -> &AtomicBool

source§

fn catch_panic<R, F, G>(&self, fallback: G, f: F) -> R
where F: FnOnce(&Self) -> R, G: FnOnce() -> R,

source§

fn catch_panic_future<R, F, G>( &self, fallback: F, fut: G, ) -> CatchPanic<Self, F, G>
where F: FnOnce() -> R, G: Future<Output = R>,

source§

fn catch_panic_pad_function<R, F, G>( parent: Option<&Object>, fallback: G, f: F, ) -> R
where F: FnOnce(&Self) -> R, G: FnOnce() -> R,

source§

fn post_error_message(&self, msg: ErrorMessage)

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
source§

impl<T> ObjectImplExt for T
where T: ObjectImpl,

source§

fn parent_constructed(&self)

Chain up to the parent class’ implementation of glib::Object::constructed().
source§

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])

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>

Chain up to parent class signal handler.
source§

impl<T> ObjectSubclassExt for T
where T: ObjectSubclass,

source§

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

👎Deprecated: Use from_obj() instead
Returns the implementation from an instance.
source§

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

Returns the implementation from an instance. Read more
source§

fn ref_counted(&self) -> ObjectImplRef<T>

Returns a new reference-counted wrapper around self.
source§

fn instance_data<U>(&self, type_: Type) -> Option<&U>
where U: Any + Send + Sync + 'static,

Returns a pointer to the instance implementation specific data. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> URIHandlerImplExt for T
where T: URIHandlerImpl,

source§

impl<T> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T