Struct gstreamer_play::PlayConfig
source · pub struct PlayConfig(/* private fields */);
Implementations§
source§impl PlayConfig
impl PlayConfig
pub fn position_update_interval(&self) -> u32
pub fn set_position_update_interval(&mut self, interval: u32)
pub fn is_seek_accurate(&self) -> bool
pub fn set_seek_accurate(&mut self, accurate: bool)
pub fn user_agent(&self) -> Option<String>
pub fn set_user_agent(&mut self, agent: &str)
pub fn pipeline_dump_in_error_details(&self) -> bool
pub fn set_pipeline_dump_in_error_details( &mut self, pipeline_dump_in_error_details: bool, )
Methods from Deref<Target = StructureRef>§
pub fn as_ptr(&self) -> *const GstStructure
pub fn as_mut_ptr(&self) -> *mut GstStructure
pub fn get<'a, T>(
&'a self,
name: impl IntoGStr,
) -> Result<T, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>where
T: FromValue<'a>,
pub fn get_optional<'a, T>(
&'a self,
name: impl IntoGStr,
) -> Result<Option<T>, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>where
T: FromValue<'a>,
pub fn value( &self, name: impl IntoGStr, ) -> Result<&SendValue, GetError<Infallible>>
pub fn get_by_quark<'a, T>(
&'a self,
name: Quark,
) -> Result<T, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>where
T: FromValue<'a>,
pub fn get_optional_by_quark<'a, T>(
&'a self,
name: Quark,
) -> Result<Option<T>, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>where
T: FromValue<'a>,
pub fn value_by_quark( &self, name: Quark, ) -> Result<&SendValue, GetError<Infallible>>
sourcepub fn set(&mut self, name: impl IntoGStr, value: impl Into<Value> + Send)
pub fn set(&mut self, name: impl IntoGStr, value: impl Into<Value> + Send)
Sets field name
to the given value value
.
Overrides any default or previously defined value for name
.
sourcepub fn set_if(
&mut self,
name: impl IntoGStr,
value: impl Into<Value> + Send,
predicate: bool,
)
pub fn set_if( &mut self, name: impl IntoGStr, value: impl Into<Value> + Send, predicate: bool, )
Sets field name
to the given inner value if value
is Some
.
This has no effect if the predicate
evaluates to false
,
i.e. default or previous value for name
is kept.
sourcepub fn set_if_some(
&mut self,
name: impl IntoGStr,
value: Option<impl Into<Value> + Send>,
)
pub fn set_if_some( &mut self, name: impl IntoGStr, value: Option<impl Into<Value> + Send>, )
Sets field name
to the given inner value if value
is Some
.
This has no effect if the value is None
, i.e. default or previous value for name
is kept.
sourcepub fn set_from_iter<V>(
&mut self,
name: impl IntoGStr,
iter: impl IntoIterator<Item = impl ToSendValue>,
)
pub fn set_from_iter<V>( &mut self, name: impl IntoGStr, iter: impl IntoIterator<Item = impl ToSendValue>, )
Sets field name
using the given ValueType
V
built from iter
’s the Item
s.
Overrides any default or previously defined value for name
.
sourcepub fn set_if_not_empty<V>(
&mut self,
name: impl IntoGStr,
iter: impl IntoIterator<Item = impl ToSendValue>,
)
pub fn set_if_not_empty<V>( &mut self, name: impl IntoGStr, iter: impl IntoIterator<Item = impl ToSendValue>, )
Sets field name
using the given ValueType
V
built from iter
’s Items, if
iter` is not empty.
This has no effect if iter
is empty, i.e. previous value for name
is unchanged.
sourcepub fn set_value(&mut self, name: impl IntoGStr, value: SendValue)
pub fn set_value(&mut self, name: impl IntoGStr, value: SendValue)
Sets field name
to the given value value
.
Overrides any default or previously defined value for name
.
sourcepub fn set_value_if(
&mut self,
name: impl IntoGStr,
value: SendValue,
predicate: bool,
)
pub fn set_value_if( &mut self, name: impl IntoGStr, value: SendValue, predicate: bool, )
Sets field name
to the given inner value if value
is Some
.
This has no effect if the predicate
evaluates to false
,
i.e. default or previous value for name
is kept.
sourcepub fn set_value_if_some(
&mut self,
name: impl IntoGStr,
value: Option<SendValue>,
)
pub fn set_value_if_some( &mut self, name: impl IntoGStr, value: Option<SendValue>, )
Sets field name
to the given inner value if value
is Some
.
This has no effect if the value is None
, i.e. default or previous value for name
is kept.
pub fn set_by_quark(&mut self, name: Quark, value: impl Into<Value> + Send)
pub fn set_by_quark_if_some( &mut self, name: Quark, value: Option<impl Into<Value> + Send>, )
pub fn set_value_by_quark(&mut self, name: Quark, value: SendValue)
pub fn set_value_by_quark_if_some( &mut self, name: Quark, value: Option<SendValue>, )
pub fn name<'a>(&self) -> &'a GStr
pub fn name_quark(&self) -> Quark
pub fn set_name(&mut self, name: impl IntoGStr)
pub fn set_name_if_some(&mut self, name: Option<impl IntoGStr>)
pub fn has_name(&self, name: &str) -> bool
pub fn has_field(&self, field: impl IntoGStr) -> bool
pub fn has_field_with_type(&self, field: impl IntoGStr, type_: Type) -> bool
pub fn has_field_by_quark(&self, field: Quark) -> bool
pub fn has_field_with_type_by_quark(&self, field: Quark, type_: Type) -> bool
pub fn remove_field(&mut self, field: impl IntoGStr)
pub fn remove_fields(&mut self, fields: impl IntoIterator<Item = impl IntoGStr>)
pub fn remove_all_fields(&mut self)
pub fn fields(&self) -> FieldIterator<'_>
pub fn iter(&self) -> Iter<'_>
pub fn nth_field_name<'a>(&self, idx: usize) -> Option<&'a GStr>
pub fn n_fields(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn can_intersect(&self, other: &StructureRef) -> bool
pub fn intersect(&self, other: &StructureRef) -> Option<Structure>
pub fn is_subset(&self, superset: &StructureRef) -> bool
pub fn fixate(&mut self)
pub fn fixate_field(&mut self, name: impl IntoGStr) -> bool
pub fn fixate_field_bool(&mut self, name: impl IntoGStr, target: bool) -> bool
pub fn fixate_field_str( &mut self, name: impl IntoGStr, target: impl IntoGStr, ) -> bool
pub fn fixate_field_nearest_double( &mut self, name: impl IntoGStr, target: f64, ) -> bool
pub fn fixate_field_nearest_fraction( &mut self, name: impl IntoGStr, target: impl Into<Fraction>, ) -> bool
pub fn fixate_field_nearest_int( &mut self, name: impl IntoGStr, target: i32, ) -> bool
pub fn serialize(&self, flags: SerializeFlags) -> GString
pub fn serialize_strict( &self, flags: SerializeFlags, ) -> Result<GString, BoolError>
pub fn foreach<F>(&self, func: F) -> bool
pub fn map_in_place<F>(&mut self, func: F) -> bool
pub fn filter_map_in_place<F>(&mut self, func: F)
Trait Implementations§
source§impl AsMut<StructureRef> for PlayConfig
impl AsMut<StructureRef> for PlayConfig
source§fn as_mut(&mut self) -> &mut StructureRef
fn as_mut(&mut self) -> &mut StructureRef
source§impl AsRef<StructureRef> for PlayConfig
impl AsRef<StructureRef> for PlayConfig
source§fn as_ref(&self) -> &StructureRef
fn as_ref(&self) -> &StructureRef
source§impl Clone for PlayConfig
impl Clone for PlayConfig
source§fn clone(&self) -> PlayConfig
fn clone(&self) -> PlayConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PlayConfig
impl Debug for PlayConfig
source§impl Deref for PlayConfig
impl Deref for PlayConfig
§type Target = StructureRef
type Target = StructureRef
source§fn deref(&self) -> &StructureRef
fn deref(&self) -> &StructureRef
source§impl DerefMut for PlayConfig
impl DerefMut for PlayConfig
source§fn deref_mut(&mut self) -> &mut StructureRef
fn deref_mut(&mut self) -> &mut StructureRef
source§impl FromGlibPtrFull<*mut GstStructure> for PlayConfig
impl FromGlibPtrFull<*mut GstStructure> for PlayConfig
source§unsafe fn from_glib_full(ptr: *mut GstStructure) -> Self
unsafe fn from_glib_full(ptr: *mut GstStructure) -> Self
source§impl IntoGlibPtr<*mut GstStructure> for PlayConfig
impl IntoGlibPtr<*mut GstStructure> for PlayConfig
source§unsafe fn into_glib_ptr(self) -> *mut GstStructure
unsafe fn into_glib_ptr(self) -> *mut GstStructure
source§impl PartialEq for PlayConfig
impl PartialEq for PlayConfig
impl Eq for PlayConfig
impl StructuralPartialEq for PlayConfig
Auto Trait Implementations§
impl Freeze for PlayConfig
impl RefUnwindSafe for PlayConfig
impl Send for PlayConfig
impl Sync for PlayConfig
impl Unpin for PlayConfig
impl UnwindSafe for PlayConfig
Blanket Implementations§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
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>
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