#[repr(transparent)]pub struct Event {
obj: NonNull<GstEvent>,
}
Fields§
§obj: NonNull<GstEvent>
Implementations§
source§impl Event
impl Event
pub unsafe fn from_glib_ptr_borrow<'a>(ptr: *const *const GstEvent) -> &'a Self
pub unsafe fn from_glib_none(ptr: *const GstEvent) -> Self
pub unsafe fn from_glib_full(ptr: *const GstEvent) -> Self
pub unsafe fn from_glib_borrow(ptr: *const GstEvent) -> Borrowed<Self>
pub unsafe fn replace_ptr(&mut self, ptr: *mut GstEvent)
pub fn make_mut(&mut self) -> &mut EventRef
pub fn get_mut(&mut self) -> Option<&mut EventRef>
pub fn is_writable(&self) -> bool
pub fn upcast(self) -> MiniObject
Methods from Deref<Target = EventRef>§
pub fn as_ptr(&self) -> *const GstEvent
pub fn as_mut_ptr(&self) -> *mut GstEvent
pub fn copy(&self) -> Event
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn seqnum(&self) -> Seqnum
pub fn running_time_offset(&self) -> i64
pub fn structure(&self) -> Option<&StructureRef>
pub fn is_upstream(&self) -> bool
pub fn is_downstream(&self) -> bool
pub fn is_serialized(&self) -> bool
pub fn is_sticky(&self) -> bool
pub fn is_sticky_multi(&self) -> bool
pub fn type_(&self) -> EventType
pub fn has_name(&self, name: &str) -> bool
pub fn view(&self) -> EventView<'_>
Trait Implementations§
source§impl From<Buffersize<Event>> for Event
impl From<Buffersize<Event>> for Event
source§fn from(concrete: Buffersize<Event>) -> Self
fn from(concrete: Buffersize<Event>) -> Self
Converts to this type from the input type.
source§impl From<CustomBoth<Event>> for Event
impl From<CustomBoth<Event>> for Event
source§fn from(concrete: CustomBoth<Event>) -> Self
fn from(concrete: CustomBoth<Event>) -> Self
Converts to this type from the input type.
source§impl From<CustomBothOob<Event>> for Event
impl From<CustomBothOob<Event>> for Event
source§fn from(concrete: CustomBothOob<Event>) -> Self
fn from(concrete: CustomBothOob<Event>) -> Self
Converts to this type from the input type.
source§impl From<CustomDownstream<Event>> for Event
impl From<CustomDownstream<Event>> for Event
source§fn from(concrete: CustomDownstream<Event>) -> Self
fn from(concrete: CustomDownstream<Event>) -> Self
Converts to this type from the input type.
source§impl From<CustomDownstreamOob<Event>> for Event
impl From<CustomDownstreamOob<Event>> for Event
source§fn from(concrete: CustomDownstreamOob<Event>) -> Self
fn from(concrete: CustomDownstreamOob<Event>) -> Self
Converts to this type from the input type.
source§impl From<CustomDownstreamSticky<Event>> for Event
impl From<CustomDownstreamSticky<Event>> for Event
source§fn from(concrete: CustomDownstreamSticky<Event>) -> Self
fn from(concrete: CustomDownstreamSticky<Event>) -> Self
Converts to this type from the input type.
source§impl From<CustomUpstream<Event>> for Event
impl From<CustomUpstream<Event>> for Event
source§fn from(concrete: CustomUpstream<Event>) -> Self
fn from(concrete: CustomUpstream<Event>) -> Self
Converts to this type from the input type.
source§impl From<FlushStart<Event>> for Event
impl From<FlushStart<Event>> for Event
source§fn from(concrete: FlushStart<Event>) -> Self
fn from(concrete: FlushStart<Event>) -> Self
Converts to this type from the input type.
source§impl From<InstantRateChange<Event>> for Event
impl From<InstantRateChange<Event>> for Event
source§fn from(concrete: InstantRateChange<Event>) -> Self
fn from(concrete: InstantRateChange<Event>) -> Self
Converts to this type from the input type.
source§impl From<InstantRateSyncTime<Event>> for Event
impl From<InstantRateSyncTime<Event>> for Event
source§fn from(concrete: InstantRateSyncTime<Event>) -> Self
fn from(concrete: InstantRateSyncTime<Event>) -> Self
Converts to this type from the input type.
source§fn from(concrete: Navigation<Event>) -> Self
fn from(concrete: Navigation<Event>) -> Self
Converts to this type from the input type.
source§impl From<Protection<Event>> for Event
impl From<Protection<Event>> for Event
source§fn from(concrete: Protection<Event>) -> Self
fn from(concrete: Protection<Event>) -> Self
Converts to this type from the input type.
source§impl From<Reconfigure<Event>> for Event
impl From<Reconfigure<Event>> for Event
source§fn from(concrete: Reconfigure<Event>) -> Self
fn from(concrete: Reconfigure<Event>) -> Self
Converts to this type from the input type.
source§impl From<SegmentDone<Event>> for Event
impl From<SegmentDone<Event>> for Event
source§fn from(concrete: SegmentDone<Event>) -> Self
fn from(concrete: SegmentDone<Event>) -> Self
Converts to this type from the input type.
source§impl From<SelectStreams<Event>> for Event
impl From<SelectStreams<Event>> for Event
source§fn from(concrete: SelectStreams<Event>) -> Self
fn from(concrete: SelectStreams<Event>) -> Self
Converts to this type from the input type.
source§impl From<SinkMessage<Event>> for Event
impl From<SinkMessage<Event>> for Event
source§fn from(concrete: SinkMessage<Event>) -> Self
fn from(concrete: SinkMessage<Event>) -> Self
Converts to this type from the input type.
source§impl From<StreamCollection<Event>> for Event
impl From<StreamCollection<Event>> for Event
source§fn from(concrete: StreamCollection<Event>) -> Self
fn from(concrete: StreamCollection<Event>) -> Self
Converts to this type from the input type.
source§impl From<StreamGroupDone<Event>> for Event
impl From<StreamGroupDone<Event>> for Event
source§fn from(concrete: StreamGroupDone<Event>) -> Self
fn from(concrete: StreamGroupDone<Event>) -> Self
Converts to this type from the input type.
source§impl From<StreamStart<Event>> for Event
impl From<StreamStart<Event>> for Event
source§fn from(concrete: StreamStart<Event>) -> Self
fn from(concrete: StreamStart<Event>) -> Self
Converts to this type from the input type.
source§impl<'a> FromValue<'a> for &'a Event
impl<'a> FromValue<'a> for &'a Event
source§type Checker = GenericValueTypeOrNoneChecker<&'a Event>
type Checker = GenericValueTypeOrNoneChecker<&'a Event>
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 Event
impl<'a> FromValue<'a> for Event
source§type Checker = GenericValueTypeOrNoneChecker<Event>
type Checker = GenericValueTypeOrNoneChecker<Event>
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 HasParamSpec for Event
impl HasParamSpec for Event
source§impl IntoGlibPtr<*mut GstEvent> for Event
impl IntoGlibPtr<*mut GstEvent> for Event
source§unsafe fn into_glib_ptr(self) -> *mut GstEvent
unsafe fn into_glib_ptr(self) -> *mut GstEvent
Transfer: full.
source§impl StaticType for Event
impl StaticType for Event
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstEvent> for Event
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstEvent> for Event
type Storage = (PhantomData<&'a [Event]>, Option<Vec<*mut GstEvent>>)
fn to_glib_none_from_slice( t: &'a [Event], ) -> (*const *mut GstEvent, Self::Storage)
fn to_glib_container_from_slice( _: &'a [Event], ) -> (*const *mut GstEvent, Self::Storage)
fn to_glib_full_from_slice(_: &[Event]) -> *const *mut GstEvent
source§impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstEvent> for Event
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstEvent> for Event
type Storage = (PhantomData<&'a [Event]>, Option<Vec<*mut GstEvent>>)
fn to_glib_none_from_slice( t: &'a [Event], ) -> (*mut *mut GstEvent, Self::Storage)
fn to_glib_container_from_slice( t: &'a [Event], ) -> (*mut *mut GstEvent, Self::Storage)
fn to_glib_full_from_slice(t: &[Event]) -> *mut *mut GstEvent
source§impl ToValueOptional for Event
impl ToValueOptional for Event
source§fn to_value_optional(s: Option<&Self>) -> Value
fn to_value_optional(s: Option<&Self>) -> Value
Convert an
Option
to a Value
.impl Send for Event
impl Sync for Event
impl TransparentPtrType for Event
impl ValueTypeOptional for Event
Auto Trait Implementations§
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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>,
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>,
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>,
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>,
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>,
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>,
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
.