Struct gstreamer::promise::PromiseReply
source · pub struct PromiseReply(/* private fields */);
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: FromValue<'a>>( &'a self, name: impl IntoGStr ) -> Result<T, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>
pub fn get_optional<'a, T: FromValue<'a>>( &'a self, name: impl IntoGStr ) -> Result<Option<T>, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>
pub fn value( &self, name: impl IntoGStr ) -> Result<&SendValue, GetError<Infallible>>
pub fn get_by_quark<'a, T: FromValue<'a>>( &'a self, name: Quark ) -> Result<T, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>
pub fn get_optional_by_quark<'a, T: FromValue<'a>>( &'a self, name: Quark ) -> Result<Option<T>, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>
pub fn value_by_quark( &self, name: Quark ) -> Result<&SendValue, GetError<Infallible>>
pub fn name<'a>(&self) -> &'a GStr
pub fn name_quark(&self) -> Quark
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 fields(&self) -> FieldIterator<'_> ⓘ
pub fn iter(&self) -> Iter<'_> ⓘ
pub fn nth_field_name<'a>(&self, idx: u32) -> Option<&'a GStr>
pub fn n_fields(&self) -> u32
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 serialize(&self, flags: SerializeFlags) -> GString
Available on crate feature
v1_20
only.pub fn serialize_strict( &self, flags: SerializeFlags ) -> Result<GString, BoolError>
Available on crate feature
v1_24
only.pub fn foreach<F: FnMut(Quark, &Value) -> ControlFlow<()>>( &self, func: F ) -> bool
Trait Implementations§
source§impl Debug for PromiseReply
impl Debug for PromiseReply
source§impl Deref for PromiseReply
impl Deref for PromiseReply
§type Target = StructureRef
type Target = StructureRef
The resulting type after dereferencing.
source§fn deref(&self) -> &StructureRef
fn deref(&self) -> &StructureRef
Dereferences the value.
Auto Trait Implementations§
impl RefUnwindSafe for PromiseReply
impl Send for PromiseReply
impl Sync for PromiseReply
impl Unpin for PromiseReply
impl UnwindSafe for PromiseReply
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
Mutably borrows from an owned value. Read more