[−][src]Struct gstreamer::query::Query
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]
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]
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]
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]
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]
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]
value: V,
dest_fmt: Format
) -> Convert<Self>
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Query
[src]
impl Deref for Query
[src]
impl Drop 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<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]
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) -> Borrowed<Self>
[src]
impl FromGlibPtrBorrow<*mut GstQuery> for Query
[src]
unsafe fn from_glib_borrow(ptr: *mut GstQuery) -> Borrowed<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 Send 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 Sync for Query
[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, Self>>, 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 = &'a Self
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 = &'a Self
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
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>,