[−][src]Struct gstreamer::query::Query
Methods
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) -> Self
[src]
pub unsafe fn into_ptr(self) -> *mut GstQuery
[src]
pub fn copy(&self) -> Self
[src]
impl Query
[src]
pub fn new_position(fmt: Format) -> Position<Self>
[src]
Constructs a new query stream position query object. Use gst_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: gst_query_unref
format
the default Format
for the new query
Returns
a new Query
pub fn new_duration(fmt: Format) -> Duration<Self>
[src]
Constructs a new stream duration query object to query in the given format.
Use gst_query_unref
when done with it. A duration query will give the
total length of the stream.
Free-function: gst_query_unref
format
the Format
for this duration query
Returns
a new Query
pub fn new_latency() -> Latency<Self>
[src]
Constructs a new latency query object.
Use gst_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: gst_query_unref
Returns
a Query
pub fn new_seeking(fmt: Format) -> Seeking<Self>
[src]
Constructs a new query object for querying seeking properties of the stream.
Free-function: gst_query_unref
format
the default Format
for the new query
Returns
a new Query
pub fn new_segment(fmt: Format) -> Segment<Self>
[src]
Constructs a new segment query object. Use gst_query_unref
when done with it. A segment query is used to discover information about the
currently configured segment for playback.
Free-function: gst_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]
value: V,
dest_fmt: Format
) -> Convert<Self>
Constructs a new convert query object. Use gst_query_unref
when done with it. A convert query is used to ask for a conversion between
one format and another.
Free-function: gst_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]
Constructs a new query object for querying formats of the stream.
Free-function: gst_query_unref
Returns
a new Query
pub fn new_buffering(fmt: Format) -> Buffering<Self>
[src]
Constructs a new query object for querying the buffering status of a stream.
Free-function: gst_query_unref
format
the default Format
for the new query
Returns
a new Query
pub fn new_custom(structure: Structure) -> Custom<Self>
[src]
Constructs a new custom query object. Use gst_query_unref
when done with it.
Free-function: gst_query_unref
type_
the query type
structure
a structure for the query
Returns
a new Query
pub fn new_uri() -> Uri<Self>
[src]
Constructs a new query URI query object. Use gst_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: gst_query_unref
Returns
a new Query
pub fn new_allocation(caps: &Caps, need_pool: bool) -> Allocation<Self>
[src]
Constructs a new query object for querying the allocation properties.
Free-function: gst_query_unref
caps
the negotiated caps
need_pool
return a pool
Returns
a new Query
pub fn new_scheduling() -> Scheduling<Self>
[src]
Constructs a new query object for querying the scheduling properties.
Free-function: gst_query_unref
Returns
a new Query
pub fn new_accept_caps(caps: &Caps) -> AcceptCaps<Self>
[src]
Constructs a new query object for querying if caps
are accepted.
Free-function: gst_query_unref
caps
a fixed Caps
Returns
a new Query
pub fn new_caps(filter: Option<&Caps>) -> Caps<Self>
[src]
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: gst_query_unref
filter
a filter
Returns
a new Query
pub fn new_drain() -> Drain<Self>
[src]
Constructs a new query object for querying the drain state.
Free-function: gst_query_unref
Returns
a new Query
pub fn new_context(context_type: &str) -> Context<Self>
[src]
Constructs a new query object for querying the pipeline-local context.
Free-function: gst_query_unref
context_type
Context type to query
Returns
a new Query
pub fn new_bitrate() -> Bitrate<Self>
[src]
Constructs a new query object for querying the bitrate.
Free-function: gst_query_unref
Feature: v1_16
Returns
a new Query
Methods from Deref<Target = GstRc<QueryRef>>
pub fn make_mut(&mut self) -> &mut T
[src]
pub fn get_mut(&mut self) -> Option<&mut T>
[src]
pub fn is_writable(&self) -> bool
[src]
pub fn add_parent<U: MiniObject>(&self, parent: &U)
[src]
pub fn remove_parent<U: MiniObject>(&self, parent: &U)
[src]
Trait Implementations
impl AsMutPtr for Query
[src]
unsafe fn as_mut_ptr(&self) -> *mut GstQuery
[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 = GstRc<QueryRef>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl DerefMut for Query
[src]
impl From<AcceptCaps<Query>> for Query
[src]
fn from(concrete: AcceptCaps<Query>) -> Self
[src]
impl From<Allocation<Query>> for Query
[src]
fn from(concrete: Allocation<Query>) -> Self
[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<GstRc<QueryRef>> for Query
[src]
impl From<Jitter<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<Rate<Query>> for Query
[src]
impl From<Scheduling<Query>> for Query
[src]
fn from(concrete: Scheduling<Query>) -> Self
[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]
unsafe fn from_glib_none_num_as_vec(
ptr: *const *mut GstQuery,
num: usize
) -> Vec<Self>
[src]
ptr: *const *mut GstQuery,
num: usize
) -> Vec<Self>
unsafe fn from_glib_container_num_as_vec(
_: *const *mut GstQuery,
_: usize
) -> Vec<Self>
[src]
_: *const *mut GstQuery,
_: usize
) -> Vec<Self>
unsafe fn from_glib_full_num_as_vec(
_: *const *mut GstQuery,
_: usize
) -> Vec<Self>
[src]
_: *const *mut GstQuery,
_: usize
) -> Vec<Self>
impl FromGlibContainerAsVec<*mut GstQuery, *mut *mut GstQuery> for Query
[src]
unsafe fn from_glib_none_num_as_vec(
ptr: *mut *mut GstQuery,
num: usize
) -> Vec<Self>
[src]
ptr: *mut *mut GstQuery,
num: usize
) -> Vec<Self>
unsafe fn from_glib_container_num_as_vec(
ptr: *mut *mut GstQuery,
num: usize
) -> Vec<Self>
[src]
ptr: *mut *mut GstQuery,
num: usize
) -> Vec<Self>
unsafe fn from_glib_full_num_as_vec(
ptr: *mut *mut GstQuery,
num: usize
) -> Vec<Self>
[src]
ptr: *mut *mut GstQuery,
num: usize
) -> Vec<Self>
impl FromGlibPtrArrayContainerAsVec<*mut GstQuery, *const *mut GstQuery> for Query
[src]
unsafe fn from_glib_none_as_vec(ptr: *const *mut GstQuery) -> Vec<Self>
[src]
unsafe fn from_glib_container_as_vec(_: *const *mut GstQuery) -> Vec<Self>
[src]
unsafe fn from_glib_full_as_vec(_: *const *mut GstQuery) -> Vec<Self>
[src]
impl FromGlibPtrArrayContainerAsVec<*mut GstQuery, *mut *mut GstQuery> for Query
[src]
unsafe fn from_glib_none_as_vec(ptr: *mut *mut GstQuery) -> Vec<Self>
[src]
unsafe fn from_glib_container_as_vec(ptr: *mut *mut GstQuery) -> Vec<Self>
[src]
unsafe fn from_glib_full_as_vec(ptr: *mut *mut GstQuery) -> Vec<Self>
[src]
impl FromGlibPtrBorrow<*const GstQuery> for Query
[src]
unsafe fn from_glib_borrow(ptr: *const GstQuery) -> Self
[src]
impl FromGlibPtrBorrow<*mut GstQuery> for Query
[src]
unsafe fn from_glib_borrow(ptr: *mut GstQuery) -> Self
[src]
impl FromGlibPtrFull<*const GstQuery> for Query
[src]
unsafe fn from_glib_full(ptr: *const GstQuery) -> Self
[src]
impl FromGlibPtrFull<*mut GstQuery> for Query
[src]
unsafe fn from_glib_full(ptr: *mut GstQuery) -> Self
[src]
impl FromGlibPtrNone<*const GstQuery> for Query
[src]
unsafe fn from_glib_none(ptr: *const GstQuery) -> Self
[src]
impl FromGlibPtrNone<*mut GstQuery> for Query
[src]
unsafe fn from_glib_none(ptr: *mut GstQuery) -> Self
[src]
impl<'a> FromValueOptional<'a> for Query
[src]
unsafe fn from_value_optional(v: &'a Value) -> Option<Self>
[src]
impl GlibPtrDefault for Query
[src]
impl Into<GstRc<QueryRef>> for Query
[src]
impl SetValue for Query
[src]
impl SetValueOptional for Query
[src]
unsafe fn set_value_optional(v: &mut Value, s: Option<&Self>)
[src]
impl StaticType for Query
[src]
fn static_type() -> Type
[src]
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstQuery> for Query
[src]
type Storage = (Vec<Stash<'a, *mut GstQuery, Query>>, Option<Vec<*mut GstQuery>>)
fn to_glib_none_from_slice(
t: &'a [Query]
) -> (*const *mut GstQuery, Self::Storage)
[src]
t: &'a [Query]
) -> (*const *mut GstQuery, Self::Storage)
fn to_glib_container_from_slice(
_: &'a [Query]
) -> (*const *mut GstQuery, Self::Storage)
[src]
_: &'a [Query]
) -> (*const *mut GstQuery, Self::Storage)
fn to_glib_full_from_slice(_: &[Query]) -> *const *mut GstQuery
[src]
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstQuery> for Query
[src]
type Storage = (Vec<Stash<'a, *mut GstQuery, Query>>, Option<Vec<*mut GstQuery>>)
fn to_glib_none_from_slice(
t: &'a [Query]
) -> (*mut *mut GstQuery, Self::Storage)
[src]
t: &'a [Query]
) -> (*mut *mut GstQuery, Self::Storage)
fn to_glib_container_from_slice(
t: &'a [Query]
) -> (*mut *mut GstQuery, Self::Storage)
[src]
t: &'a [Query]
) -> (*mut *mut GstQuery, Self::Storage)
fn to_glib_full_from_slice(t: &[Query]) -> *mut *mut GstQuery
[src]
impl<'a> ToGlibPtr<'a, *const GstQuery> for Query
[src]
type Storage = Stash<'a, *const GstQuery, GstRc<QueryRef>>
fn to_glib_none(&'a self) -> Stash<'a, *const GstQuery, Self>
[src]
fn to_glib_full(&self) -> *const GstQuery
[src]
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]
impl<'a> ToGlibPtr<'a, *mut GstQuery> for Query
[src]
type Storage = Stash<'a, *mut GstQuery, GstRc<QueryRef>>
fn to_glib_none(&'a self) -> Stash<'a, *mut GstQuery, Self>
[src]
fn to_glib_full(&self) -> *mut GstQuery
[src]
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]
impl<'a> ToGlibPtrMut<'a, *mut GstQuery> for Query
[src]
Auto Trait Implementations
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
[src]
t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
fn to_glib_container_from_slice(
_t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
[src]
_t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
fn to_glib_full_from_slice(_t: &[T]) -> *const GList
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
[src]
t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
fn to_glib_container_from_slice(
_t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
[src]
_t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
fn to_glib_full_from_slice(_t: &[T]) -> *const GPtrArray
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
[src]
t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
fn to_glib_container_from_slice(
t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
[src]
t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
fn to_glib_full_from_slice(t: &[T]) -> *mut GArray
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
[src]
t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
fn to_glib_container_from_slice(
t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
[src]
t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
fn to_glib_full_from_slice(t: &[T]) -> *mut GList
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
[src]
t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
fn to_glib_container_from_slice(
t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
[src]
t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
fn to_glib_full_from_slice(t: &[T]) -> *mut GPtrArray
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src]
T: ToValue + SetValue + Send + ?Sized,
fn to_send_value(&self) -> SendValue
[src]
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,