Struct gstreamer_player::PlayerConfig[][src]

pub struct PlayerConfig(_);

Implementations

impl PlayerConfig[src]

pub fn position_update_interval(&self) -> u32[src]

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

pub fn user_agent(&self) -> Option<String>[src]

pub fn set_position_update_interval(&mut self, interval: u32)[src]

pub fn set_seek_accurate(&mut self, accurate: bool)[src]

pub fn set_user_agent(&mut self, agent: &str)[src]

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

Methods from Deref<Target = StructureRef>

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

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

pub fn get<'a, T>(&'a self, name: &str) -> Result<T, GetError> where
    T: FromValue<'a>,
    <<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error: GlibValueError
[src]

pub fn get_optional<'a, T>(&'a self, name: &str) -> Result<Option<T>, GetError> where
    T: FromValue<'a>,
    <<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error: GlibValueError
[src]

pub fn value(&self, name: &str) -> Result<&SendValue, GetError>[src]

pub fn get_by_quark<'a, T>(&'a self, name: Quark) -> Result<T, GetError> where
    T: FromValue<'a>,
    <<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error: GlibValueError
[src]

pub fn get_optional_by_quark<'a, T>(
    &'a self,
    name: Quark
) -> Result<Option<T>, GetError> where
    T: FromValue<'a>,
    <<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error: GlibValueError
[src]

pub fn value_by_quark(&self, name: Quark) -> Result<&SendValue, GetError>[src]

pub fn set<T>(&mut self, name: &str, value: T) where
    T: ToSendValue + Sync
[src]

pub fn set_value(&mut self, name: &str, value: SendValue)[src]

pub fn set_by_quark<T>(&mut self, name: Quark, value: T) where
    T: ToSendValue + Sync
[src]

pub fn set_value_by_quark(&mut self, name: Quark, value: SendValue)[src]

pub fn name<'a>(&self) -> &'a str[src]

pub fn name_quark(&self) -> Quark[src]

pub fn set_name(&mut self, name: &str)[src]

pub fn has_field(&self, field: &str) -> bool[src]

pub fn has_field_with_type(&self, field: &str, type_: Type) -> bool[src]

pub fn has_field_by_quark(&self, field: Quark) -> bool[src]

pub fn has_field_with_type_by_quark(&self, field: Quark, type_: Type) -> bool[src]

pub fn remove_field(&mut self, field: &str)[src]

pub fn remove_fields(&mut self, fields: &[&str])[src]

pub fn remove_all_fields(&mut self)[src]

pub fn fields(&self) -> FieldIterator<'_>[src]

pub fn iter(&self) -> Iter<'_>[src]

pub fn nth_field_name<'a>(&self, idx: u32) -> Option<&'a str>[src]

pub fn n_fields(&self) -> u32[src]

pub fn can_intersect(&self, other: &StructureRef) -> bool[src]

pub fn intersect(&self, other: &StructureRef) -> Option<Structure>[src]

pub fn is_subset(&self, superset: &StructureRef) -> bool[src]

pub fn fixate(&mut self)[src]

pub fn fixate_field(&mut self, name: &str) -> bool[src]

pub fn fixate_field_bool(&mut self, name: &str, target: bool) -> bool[src]

pub fn fixate_field_str(&mut self, name: &str, target: &str) -> bool[src]

pub fn fixate_field_nearest_double(&mut self, name: &str, target: f64) -> bool[src]

pub fn fixate_field_nearest_fraction<T>(
    &mut self,
    name: &str,
    target: T
) -> bool where
    T: Into<Fraction>, 
[src]

pub fn fixate_field_nearest_int(&mut self, name: &str, target: i32) -> bool[src]

Trait Implementations

impl AsMut<StructureRef> for PlayerConfig[src]

fn as_mut(&mut self) -> &mut StructureRef[src]

Performs the conversion.

impl AsRef<StructureRef> for PlayerConfig[src]

fn as_ref(&self) -> &StructureRef[src]

Performs the conversion.

impl Clone for PlayerConfig[src]

fn clone(&self) -> PlayerConfig[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for PlayerConfig[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Deref for PlayerConfig[src]

type Target = StructureRef

The resulting type after dereferencing.

fn deref(&self) -> &StructureRef[src]

Dereferences the value.

impl DerefMut for PlayerConfig[src]

fn deref_mut(&mut self) -> &mut StructureRef[src]

Mutably dereferences the value.

impl FromGlibPtrFull<*mut GstStructure> for PlayerConfig[src]

unsafe fn from_glib_full(ptr: *mut GstStructure) -> Self[src]

Safety Read more

impl PartialEq<PlayerConfig> for PlayerConfig[src]

fn eq(&self, other: &PlayerConfig) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &PlayerConfig) -> bool[src]

This method tests for !=.

impl Eq for PlayerConfig[src]

impl StructuralEq for PlayerConfig[src]

impl StructuralPartialEq for PlayerConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for PlayerConfig

impl Send for PlayerConfig

impl Sync for PlayerConfig

impl Unpin for PlayerConfig

impl UnwindSafe for PlayerConfig

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

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

Performs the conversion.

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.

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

Performs the conversion.