Struct gstreamer_validate::Action
source · pub struct Action { /* private fields */ }
Implementations§
source§impl Action
impl Action
pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GstValidateAction) -> &Self
pub unsafe fn from_glib_none(ptr: *const GstValidateAction) -> Self
pub unsafe fn from_glib_full(ptr: *const GstValidateAction) -> Self
pub unsafe fn from_glib_borrow(ptr: *const GstValidateAction) -> Borrowed<Self>
pub unsafe fn replace_ptr(&mut self, ptr: *mut GstValidateAction)
pub fn make_mut(&mut self) -> &mut ActionRef
pub fn get_mut(&mut self) -> Option<&mut ActionRef>
pub fn is_writable(&self) -> bool
pub fn upcast(self) -> MiniObject
source§impl Action
impl Action
sourcepub fn new(
scenario: Option<&impl IsA<Scenario>>,
action_type: &ActionType,
structure: &StructureRef,
add_to_lists: bool,
) -> Action
pub fn new( scenario: Option<&impl IsA<Scenario>>, action_type: &ActionType, structure: &StructureRef, add_to_lists: bool, ) -> Action
pub fn execute(&self) -> Result<ActionSuccess, ActionError>
Methods from Deref<Target = ActionRef>§
pub fn as_ptr(&self) -> *const GstValidateAction
pub fn as_mut_ptr(&self) -> *mut GstValidateAction
pub fn copy(&self) -> Action
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn structure(&self) -> &StructureRef
Trait Implementations§
source§impl FromGlibContainerAsVec<*mut GstValidateAction, *const *mut GstValidateAction> for Action
impl FromGlibContainerAsVec<*mut GstValidateAction, *const *mut GstValidateAction> for Action
unsafe fn from_glib_none_num_as_vec( ptr: *const *mut GstValidateAction, num: usize, ) -> Vec<Self>
unsafe fn from_glib_container_num_as_vec( _: *const *mut GstValidateAction, _: usize, ) -> Vec<Self>
unsafe fn from_glib_full_num_as_vec( _: *const *mut GstValidateAction, _: usize, ) -> Vec<Self>
source§impl FromGlibContainerAsVec<*mut GstValidateAction, *mut *mut GstValidateAction> for Action
impl FromGlibContainerAsVec<*mut GstValidateAction, *mut *mut GstValidateAction> for Action
unsafe fn from_glib_none_num_as_vec( ptr: *mut *mut GstValidateAction, num: usize, ) -> Vec<Self>
unsafe fn from_glib_container_num_as_vec( ptr: *mut *mut GstValidateAction, num: usize, ) -> Vec<Self>
unsafe fn from_glib_full_num_as_vec( ptr: *mut *mut GstValidateAction, num: usize, ) -> Vec<Self>
source§impl FromGlibPtrArrayContainerAsVec<*mut GstValidateAction, *const *mut GstValidateAction> for Action
impl FromGlibPtrArrayContainerAsVec<*mut GstValidateAction, *const *mut GstValidateAction> for Action
unsafe fn from_glib_none_as_vec(ptr: *const *mut GstValidateAction) -> Vec<Self>
unsafe fn from_glib_container_as_vec( _: *const *mut GstValidateAction, ) -> Vec<Self>
unsafe fn from_glib_full_as_vec(_: *const *mut GstValidateAction) -> Vec<Self>
source§impl FromGlibPtrArrayContainerAsVec<*mut GstValidateAction, *mut *mut GstValidateAction> for Action
impl FromGlibPtrArrayContainerAsVec<*mut GstValidateAction, *mut *mut GstValidateAction> for Action
unsafe fn from_glib_none_as_vec(ptr: *mut *mut GstValidateAction) -> Vec<Self>
unsafe fn from_glib_container_as_vec( ptr: *mut *mut GstValidateAction, ) -> Vec<Self>
unsafe fn from_glib_full_as_vec(ptr: *mut *mut GstValidateAction) -> Vec<Self>
source§impl FromGlibPtrBorrow<*const GstValidateAction> for Action
impl FromGlibPtrBorrow<*const GstValidateAction> for Action
source§unsafe fn from_glib_borrow(ptr: *const GstValidateAction) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *const GstValidateAction) -> Borrowed<Self>
Safety Read more
source§impl FromGlibPtrBorrow<*mut GstValidateAction> for Action
impl FromGlibPtrBorrow<*mut GstValidateAction> for Action
source§unsafe fn from_glib_borrow(ptr: *mut GstValidateAction) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *mut GstValidateAction) -> Borrowed<Self>
Safety Read more
source§impl FromGlibPtrFull<*const GstValidateAction> for Action
impl FromGlibPtrFull<*const GstValidateAction> for Action
source§unsafe fn from_glib_full(ptr: *const GstValidateAction) -> Self
unsafe fn from_glib_full(ptr: *const GstValidateAction) -> Self
Safety Read more
source§impl FromGlibPtrFull<*mut GstValidateAction> for Action
impl FromGlibPtrFull<*mut GstValidateAction> for Action
source§unsafe fn from_glib_full(ptr: *mut GstValidateAction) -> Self
unsafe fn from_glib_full(ptr: *mut GstValidateAction) -> Self
Safety Read more
source§impl FromGlibPtrNone<*const GstValidateAction> for Action
impl FromGlibPtrNone<*const GstValidateAction> for Action
source§unsafe fn from_glib_none(ptr: *const GstValidateAction) -> Self
unsafe fn from_glib_none(ptr: *const GstValidateAction) -> Self
Safety Read more
source§impl FromGlibPtrNone<*mut GstValidateAction> for Action
impl FromGlibPtrNone<*mut GstValidateAction> for Action
source§unsafe fn from_glib_none(ptr: *mut GstValidateAction) -> Self
unsafe fn from_glib_none(ptr: *mut GstValidateAction) -> Self
Safety Read more
source§impl<'a> FromValue<'a> for &'a Action
impl<'a> FromValue<'a> for &'a Action
§type Checker = GenericValueTypeOrNoneChecker<&'a Action>
type Checker = GenericValueTypeOrNoneChecker<&'a Action>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl<'a> FromValue<'a> for Action
impl<'a> FromValue<'a> for Action
§type Checker = GenericValueTypeOrNoneChecker<Action>
type Checker = GenericValueTypeOrNoneChecker<Action>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl GlibPtrDefault for Action
impl GlibPtrDefault for Action
type GlibType = *mut GstValidateAction
source§impl HasParamSpec for Action
impl HasParamSpec for Action
source§impl IntoGlibPtr<*mut GstValidateAction> for Action
impl IntoGlibPtr<*mut GstValidateAction> for Action
source§unsafe fn into_glib_ptr(self) -> *mut GstValidateAction
unsafe fn into_glib_ptr(self) -> *mut GstValidateAction
Transfer: full.
source§impl IsMiniObject for Action
impl IsMiniObject for Action
source§impl StaticType for Action
impl StaticType for Action
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstValidateAction> for Action
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstValidateAction> for Action
type Storage = (PhantomData<&'a [Action]>, Option<Vec<*mut GstValidateAction>>)
fn to_glib_none_from_slice( t: &'a [Action], ) -> (*const *mut GstValidateAction, Self::Storage)
fn to_glib_container_from_slice( _: &'a [Action], ) -> (*const *mut GstValidateAction, Self::Storage)
fn to_glib_full_from_slice(_: &[Action]) -> *const *mut GstValidateAction
source§impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstValidateAction> for Action
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstValidateAction> for Action
type Storage = (PhantomData<&'a [Action]>, Option<Vec<*mut GstValidateAction>>)
fn to_glib_none_from_slice( t: &'a [Action], ) -> (*mut *mut GstValidateAction, Self::Storage)
fn to_glib_container_from_slice( t: &'a [Action], ) -> (*mut *mut GstValidateAction, Self::Storage)
fn to_glib_full_from_slice(t: &[Action]) -> *mut *mut GstValidateAction
source§impl<'a> ToGlibPtr<'a, *const GstValidateAction> for Action
impl<'a> ToGlibPtr<'a, *const GstValidateAction> for Action
type Storage = PhantomData<&'a Action>
source§fn to_glib_none(&'a self) -> Stash<'a, *const GstValidateAction, Self>
fn to_glib_none(&'a self) -> Stash<'a, *const GstValidateAction, Self>
Transfer: none. Read more
source§fn to_glib_full(&self) -> *const GstValidateAction
fn to_glib_full(&self) -> *const GstValidateAction
Transfer: full. Read more
source§fn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
source§impl<'a> ToGlibPtr<'a, *mut GstValidateAction> for Action
impl<'a> ToGlibPtr<'a, *mut GstValidateAction> for Action
type Storage = PhantomData<&'a Action>
source§fn to_glib_none(&'a self) -> Stash<'a, *mut GstValidateAction, Self>
fn to_glib_none(&'a self) -> Stash<'a, *mut GstValidateAction, Self>
Transfer: none. Read more
source§fn to_glib_full(&self) -> *mut GstValidateAction
fn to_glib_full(&self) -> *mut GstValidateAction
Transfer: full. Read more
source§fn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
source§impl<'a> ToGlibPtrMut<'a, *mut GstValidateAction> for Action
impl<'a> ToGlibPtrMut<'a, *mut GstValidateAction> for Action
type Storage = PhantomData<&'a mut Action>
source§fn to_glib_none_mut(&'a mut self) -> StashMut<'_, *mut GstValidateAction, Self>
fn to_glib_none_mut(&'a mut self) -> StashMut<'_, *mut GstValidateAction, Self>
Transfer: none. Read more
source§impl ToValueOptional for Action
impl ToValueOptional for Action
impl Send for Action
impl Sync for Action
impl TransparentPtrType for Action
impl ValueTypeOptional for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Unpin for Action
impl UnwindSafe for Action
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GPtrArray) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GSList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GPtrArray) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GSList) -> Vec<T>
source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
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>
Converts
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>
Converts
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 moresource§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.