[][src]Struct gstreamer::query::Query

pub struct Query { /* fields omitted */ }

Implementations

impl Query[src]

pub unsafe fn from_glib_none(ptr: *const GstQuery) -> Self[src]

pub unsafe fn from_glib_full(ptr: *const GstQuery) -> Self[src]

pub unsafe fn from_glib_borrow(ptr: *const GstQuery) -> Borrowed<Self>[src]

pub unsafe fn replace_ptr(&mut self, ptr: *mut GstQuery)[src]

pub fn make_mut(&mut self) -> &mut QueryRef[src]

pub fn get_mut(&mut self) -> Option<&mut QueryRef>[src]

pub fn is_writable(&self) -> bool[src]

pub unsafe fn into_ptr(self) -> *mut GstQuery[src]

impl Query[src]

pub fn new_position(fmt: Format) -> Position<Self>[src]

👎 Deprecated since 0.16.0:

use query::Position::new instead

Constructs a new query stream position query object. Use Query::unref when done with it. A position query is used to query the current position of playback in the streams, in some format.

Free-function: Query::unref

format

the default Format for the new query

Returns

a new Query

pub fn new_duration(fmt: Format) -> Duration<Self>[src]

👎 Deprecated since 0.16.0:

use query::Duration::new instead

Constructs a new stream duration query object to query in the given format. Use Query::unref when done with it. A duration query will give the total length of the stream.

Free-function: Query::unref

format

the Format for this duration query

Returns

a new Query

pub fn new_latency() -> Latency<Self>[src]

👎 Deprecated since 0.16.0:

use query::Latency::new instead

Constructs a new latency query object. Use Query::unref when done with it. A latency query is usually performed by sinks to compensate for additional latency introduced by elements in the pipeline.

Free-function: Query::unref

Returns

a Query

pub fn new_seeking(fmt: Format) -> Seeking<Self>[src]

👎 Deprecated since 0.16.0:

use query::Seeking::new instead

Constructs a new query object for querying seeking properties of the stream.

Free-function: Query::unref

format

the default Format for the new query

Returns

a new Query

pub fn new_segment(fmt: Format) -> Segment<Self>[src]

👎 Deprecated since 0.16.0:

use query::Segment::new instead

Constructs a new segment query object. Use Query::unref when done with it. A segment query is used to discover information about the currently configured segment for playback.

Free-function: Query::unref

format

the Format for the new query

Returns

a new Query

pub fn new_convert<V: Into<GenericFormattedValue>>(
    value: V,
    dest_fmt: Format
) -> Convert<Self>
[src]

👎 Deprecated since 0.16.0:

use query::Convert::new instead

Constructs a new convert query object. Use Query::unref when done with it. A convert query is used to ask for a conversion between one format and another.

Free-function: Query::unref

src_format

the source Format for the new query

value

the value to convert

dest_format

the target Format

Returns

a Query

pub fn new_formats() -> Formats<Self>[src]

👎 Deprecated since 0.16.0:

use query::Formats::new instead

Constructs a new query object for querying formats of the stream.

Free-function: Query::unref

Returns

a new Query

pub fn new_buffering(fmt: Format) -> Buffering<Self>[src]

👎 Deprecated since 0.16.0:

use query::Buffering::new instead

Constructs a new query object for querying the buffering status of a stream.

Free-function: Query::unref

format

the default Format for the new query

Returns

a new Query

pub fn new_custom(structure: Structure) -> Custom<Self>[src]

👎 Deprecated since 0.16.0:

use query::Custom::new instead

Constructs a new custom query object. Use Query::unref when done with it.

Free-function: Query::unref

type_

the query type

structure

a structure for the query

Returns

a new Query

pub fn new_uri() -> Uri<Self>[src]

👎 Deprecated since 0.16.0:

use query::Uri::new instead

Constructs a new query URI query object. Use Query::unref when done with it. An URI query is used to query the current URI that is used by the source or sink.

Free-function: Query::unref

Returns

a new Query

pub fn new_allocation(caps: &Caps, need_pool: bool) -> Allocation<Self>[src]

👎 Deprecated since 0.16.0:

use query::Allocation::new instead

Constructs a new query object for querying the allocation properties.

Free-function: Query::unref

caps

the negotiated caps

need_pool

return a pool

Returns

a new Query

pub fn new_scheduling() -> Scheduling<Self>[src]

👎 Deprecated since 0.16.0:

use query::Scheduling::new instead

Constructs a new query object for querying the scheduling properties.

Free-function: Query::unref

Returns

a new Query

pub fn new_accept_caps(caps: &Caps) -> AcceptCaps<Self>[src]

👎 Deprecated since 0.16.0:

use query::AcceptCaps::new instead

Constructs a new query object for querying if caps are accepted.

Free-function: Query::unref

caps

a fixed Caps

Returns

a new Query

pub fn new_caps(filter: Option<&Caps>) -> Caps<Self>[src]

👎 Deprecated since 0.16.0:

use query::Caps::new instead

Constructs a new query object for querying the caps.

The CAPS query should return the allowable caps for a pad in the context of the element's state, its link to other elements, and the devices or files it has opened. These caps must be a subset of the pad template caps. In the NULL state with no links, the CAPS query should ideally return the same caps as the pad template. In rare circumstances, an object property can affect the caps returned by the CAPS query, but this is discouraged.

For most filters, the caps returned by CAPS query is directly affected by the allowed caps on other pads. For demuxers and decoders, the caps returned by the srcpad's getcaps function is directly related to the stream data. Again, the CAPS query should return the most specific caps it reasonably can, since this helps with autoplugging.

The filter is used to restrict the result caps, only the caps matching filter should be returned from the CAPS query. Specifying a filter might greatly reduce the amount of processing an element needs to do.

Free-function: Query::unref

filter

a filter

Returns

a new Query

pub fn new_drain() -> Drain<Self>[src]

👎 Deprecated since 0.16.0:

use query::Drain::new instead

Constructs a new query object for querying the drain state.

Free-function: Query::unref

Returns

a new Query

pub fn new_context(context_type: &str) -> Context<Self>[src]

👎 Deprecated since 0.16.0:

use query::Context::new instead

Constructs a new query object for querying the pipeline-local context.

Free-function: Query::unref

context_type

Context type to query

Returns

a new Query

pub fn new_bitrate() -> Bitrate<Self>[src]

👎 Deprecated since 0.16.0:

use query::Bitrate::new instead

Constructs a new query object for querying the bitrate.

Free-function: Query::unref

Feature: v1_16

Returns

a new Query

Methods from Deref<Target = QueryRef>

pub unsafe fn as_ptr(&self) -> *const GstQuery[src]

pub unsafe fn as_mut_ptr(&self) -> *mut GstQuery[src]

pub fn copy(&self) -> Query[src]

pub fn get_structure(&self) -> Option<&StructureRef>[src]

pub fn is_downstream(&self) -> bool[src]

pub fn is_upstream(&self) -> bool[src]

pub fn is_serialized(&self) -> bool[src]

pub fn view(&self) -> QueryView<&Self>[src]

Trait Implementations

impl AsMutPtr for Query[src]

impl AsPtr for Query[src]

impl AsRef<QueryRef> for Query[src]

impl Borrow<QueryRef> for Query[src]

impl Clone for Query[src]

impl Debug for Query[src]

impl Deref for Query[src]

type Target = QueryRef

The resulting type after dereferencing.

impl Drop for Query[src]

impl From<AcceptCaps<Query>> for Query[src]

impl From<Allocation<Query>> for Query[src]

impl From<Bitrate<Query>> for Query[src]

impl From<Buffering<Query>> for Query[src]

impl From<Caps<Query>> for Query[src]

impl From<Context<Query>> for Query[src]

impl From<Convert<Query>> for Query[src]

impl From<Custom<Query>> for Query[src]

impl From<Drain<Query>> for Query[src]

impl From<Duration<Query>> for Query[src]

impl From<Formats<Query>> for Query[src]

impl From<Latency<Query>> for Query[src]

impl From<Other<Query>> for Query[src]

impl From<Position<Query>> for Query[src]

impl From<Scheduling<Query>> for Query[src]

impl From<Seeking<Query>> for Query[src]

impl From<Segment<Query>> for Query[src]

impl From<Uri<Query>> for Query[src]

impl FromGlibContainerAsVec<*mut GstQuery, *const *mut GstQuery> for Query[src]

impl FromGlibContainerAsVec<*mut GstQuery, *mut *mut GstQuery> for Query[src]

impl FromGlibPtrArrayContainerAsVec<*mut GstQuery, *const *mut GstQuery> for Query[src]

impl FromGlibPtrArrayContainerAsVec<*mut GstQuery, *mut *mut GstQuery> for Query[src]

impl FromGlibPtrBorrow<*const GstQuery> for Query[src]

impl FromGlibPtrBorrow<*mut GstQuery> for Query[src]

impl FromGlibPtrFull<*const GstQuery> for Query[src]

impl FromGlibPtrFull<*mut GstQuery> for Query[src]

impl FromGlibPtrNone<*const GstQuery> for Query[src]

impl FromGlibPtrNone<*mut GstQuery> for Query[src]

impl<'a> FromValueOptional<'a> for Query[src]

impl GlibPtrDefault for Query[src]

type GlibType = *mut GstQuery

impl Send for Query[src]

impl SetValue for Query[src]

impl SetValueOptional for Query[src]

impl StaticType for Query[src]

impl Sync for Query[src]

impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstQuery> for Query[src]

impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstQuery> for Query[src]

type Storage = (Vec<Stash<'a, *mut GstQuery, Self>>, Option<Vec<*mut GstQuery>>)

impl<'a> ToGlibPtr<'a, *const GstQuery> for Query[src]

type Storage = &'a Self

impl<'a> ToGlibPtr<'a, *mut GstQuery> for Query[src]

type Storage = &'a Self

impl<'a> ToGlibPtrMut<'a, *mut GstQuery> for Query[src]

type Storage = &'a mut Self

Auto Trait Implementations

impl RefUnwindSafe for Query

impl Unpin for Query

impl UnwindSafe for Query

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.