#[repr(transparent)]pub struct Event { /* private fields */ }
Implementations
sourceimpl Event
impl Event
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
pub unsafe fn into_ptr(self) -> *mut GstEvent
Methods from Deref<Target = EventRef>
pub unsafe fn as_ptr(&self) -> *const GstEvent
pub unsafe 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<&EventRef>
Trait Implementations
sourceimpl From<Buffersize<Event>> for Event
impl From<Buffersize<Event>> for Event
sourcefn from(concrete: Buffersize<Event>) -> Self
fn from(concrete: Buffersize<Event>) -> Self
Performs the conversion.
sourceimpl From<CustomBoth<Event>> for Event
impl From<CustomBoth<Event>> for Event
sourcefn from(concrete: CustomBoth<Event>) -> Self
fn from(concrete: CustomBoth<Event>) -> Self
Performs the conversion.
sourceimpl From<CustomBothOob<Event>> for Event
impl From<CustomBothOob<Event>> for Event
sourcefn from(concrete: CustomBothOob<Event>) -> Self
fn from(concrete: CustomBothOob<Event>) -> Self
Performs the conversion.
sourceimpl From<CustomDownstream<Event>> for Event
impl From<CustomDownstream<Event>> for Event
sourcefn from(concrete: CustomDownstream<Event>) -> Self
fn from(concrete: CustomDownstream<Event>) -> Self
Performs the conversion.
sourceimpl From<CustomDownstreamOob<Event>> for Event
impl From<CustomDownstreamOob<Event>> for Event
sourcefn from(concrete: CustomDownstreamOob<Event>) -> Self
fn from(concrete: CustomDownstreamOob<Event>) -> Self
Performs the conversion.
sourceimpl From<CustomDownstreamSticky<Event>> for Event
impl From<CustomDownstreamSticky<Event>> for Event
sourcefn from(concrete: CustomDownstreamSticky<Event>) -> Self
fn from(concrete: CustomDownstreamSticky<Event>) -> Self
Performs the conversion.
sourceimpl From<CustomUpstream<Event>> for Event
impl From<CustomUpstream<Event>> for Event
sourcefn from(concrete: CustomUpstream<Event>) -> Self
fn from(concrete: CustomUpstream<Event>) -> Self
Performs the conversion.
sourceimpl From<FlushStart<Event>> for Event
impl From<FlushStart<Event>> for Event
sourcefn from(concrete: FlushStart<Event>) -> Self
fn from(concrete: FlushStart<Event>) -> Self
Performs the conversion.
sourceimpl From<InstantRateChange<Event>> for Event
impl From<InstantRateChange<Event>> for Event
sourcefn from(concrete: InstantRateChange<Event>) -> Self
fn from(concrete: InstantRateChange<Event>) -> Self
Performs the conversion.
sourceimpl From<InstantRateSyncTime<Event>> for Event
impl From<InstantRateSyncTime<Event>> for Event
sourcefn from(concrete: InstantRateSyncTime<Event>) -> Self
fn from(concrete: InstantRateSyncTime<Event>) -> Self
Performs the conversion.
sourcefn from(concrete: Navigation<Event>) -> Self
fn from(concrete: Navigation<Event>) -> Self
Performs the conversion.
sourceimpl From<Protection<Event>> for Event
impl From<Protection<Event>> for Event
sourcefn from(concrete: Protection<Event>) -> Self
fn from(concrete: Protection<Event>) -> Self
Performs the conversion.
sourceimpl From<Reconfigure<Event>> for Event
impl From<Reconfigure<Event>> for Event
sourcefn from(concrete: Reconfigure<Event>) -> Self
fn from(concrete: Reconfigure<Event>) -> Self
Performs the conversion.
sourceimpl From<SegmentDone<Event>> for Event
impl From<SegmentDone<Event>> for Event
sourcefn from(concrete: SegmentDone<Event>) -> Self
fn from(concrete: SegmentDone<Event>) -> Self
Performs the conversion.
sourceimpl From<SelectStreams<Event>> for Event
impl From<SelectStreams<Event>> for Event
sourcefn from(concrete: SelectStreams<Event>) -> Self
fn from(concrete: SelectStreams<Event>) -> Self
Performs the conversion.
sourceimpl From<SinkMessage<Event>> for Event
impl From<SinkMessage<Event>> for Event
sourcefn from(concrete: SinkMessage<Event>) -> Self
fn from(concrete: SinkMessage<Event>) -> Self
Performs the conversion.
sourceimpl From<StreamCollection<Event>> for Event
impl From<StreamCollection<Event>> for Event
sourcefn from(concrete: StreamCollection<Event>) -> Self
fn from(concrete: StreamCollection<Event>) -> Self
Performs the conversion.
sourceimpl From<StreamGroupDone<Event>> for Event
impl From<StreamGroupDone<Event>> for Event
sourcefn from(concrete: StreamGroupDone<Event>) -> Self
fn from(concrete: StreamGroupDone<Event>) -> Self
Performs the conversion.
sourceimpl From<StreamStart<Event>> for Event
impl From<StreamStart<Event>> for Event
sourcefn from(concrete: StreamStart<Event>) -> Self
fn from(concrete: StreamStart<Event>) -> Self
Performs the conversion.
sourceimpl FromGlibContainerAsVec<*mut GstEvent, *const *mut GstEvent> for Event
impl FromGlibContainerAsVec<*mut GstEvent, *const *mut GstEvent> for Event
unsafe fn from_glib_none_num_as_vec(
ptr: *const *mut GstEvent,
num: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_container_num_as_vec(
_: *const *mut GstEvent,
_: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_full_num_as_vec(
_: *const *mut GstEvent,
_: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl FromGlibContainerAsVec<*mut GstEvent, *mut *mut GstEvent> for Event
impl FromGlibContainerAsVec<*mut GstEvent, *mut *mut GstEvent> for Event
unsafe fn from_glib_none_num_as_vec(
ptr: *mut *mut GstEvent,
num: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_container_num_as_vec(
ptr: *mut *mut GstEvent,
num: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_full_num_as_vec(
ptr: *mut *mut GstEvent,
num: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl FromGlibPtrArrayContainerAsVec<*mut GstEvent, *const *mut GstEvent> for Event
impl FromGlibPtrArrayContainerAsVec<*mut GstEvent, *const *mut GstEvent> for Event
unsafe fn from_glib_none_as_vec(ptr: *const *mut GstEvent) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_container_as_vec(_: *const *mut GstEvent) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_full_as_vec(_: *const *mut GstEvent) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl FromGlibPtrArrayContainerAsVec<*mut GstEvent, *mut *mut GstEvent> for Event
impl FromGlibPtrArrayContainerAsVec<*mut GstEvent, *mut *mut GstEvent> for Event
unsafe fn from_glib_none_as_vec(ptr: *mut *mut GstEvent) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_container_as_vec(ptr: *mut *mut GstEvent) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
unsafe fn from_glib_full_as_vec(ptr: *mut *mut GstEvent) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl FromGlibPtrBorrow<*const GstEvent> for Event
impl FromGlibPtrBorrow<*const GstEvent> for Event
sourceimpl FromGlibPtrBorrow<*mut GstEvent> for Event
impl FromGlibPtrBorrow<*mut GstEvent> for Event
sourceimpl FromGlibPtrFull<*const GstEvent> for Event
impl FromGlibPtrFull<*const GstEvent> for Event
sourceunsafe fn from_glib_full(ptr: *const GstEvent) -> Self
unsafe fn from_glib_full(ptr: *const GstEvent) -> Self
Safety Read more
sourceimpl FromGlibPtrFull<*mut GstEvent> for Event
impl FromGlibPtrFull<*mut GstEvent> for Event
sourceunsafe fn from_glib_full(ptr: *mut GstEvent) -> Self
unsafe fn from_glib_full(ptr: *mut GstEvent) -> Self
Safety Read more
sourceimpl FromGlibPtrNone<*const GstEvent> for Event
impl FromGlibPtrNone<*const GstEvent> for Event
sourceunsafe fn from_glib_none(ptr: *const GstEvent) -> Self
unsafe fn from_glib_none(ptr: *const GstEvent) -> Self
Safety Read more
sourceimpl FromGlibPtrNone<*mut GstEvent> for Event
impl FromGlibPtrNone<*mut GstEvent> for Event
sourceunsafe fn from_glib_none(ptr: *mut GstEvent) -> Self
unsafe fn from_glib_none(ptr: *mut GstEvent) -> Self
Safety Read more
sourceimpl<'a> FromValue<'a> for Event
impl<'a> FromValue<'a> for Event
type Checker = GenericValueTypeOrNoneChecker<Self>
type Checker = GenericValueTypeOrNoneChecker<Self>
Value type checker.
sourceunsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a Value
. Read more
sourceimpl<'a> FromValue<'a> for &'a Event
impl<'a> FromValue<'a> for &'a Event
type Checker = GenericValueTypeOrNoneChecker<Self>
type Checker = GenericValueTypeOrNoneChecker<Self>
Value type checker.
sourceunsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a Value
. Read more
sourceimpl StaticType for Event
impl StaticType for Event
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl<'a> ToGlibContainerFromSlice<'a, *const *mut GstEvent> for Event
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstEvent> for Event
type Storage = (Vec<Stash<'a, *mut GstEvent, 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
sourceimpl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstEvent> for Event
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstEvent> for Event
type Storage = (Vec<Stash<'a, *mut GstEvent, Self>>, 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
sourceimpl<'a> ToGlibPtrMut<'a, *mut GstEvent> for Event
impl<'a> ToGlibPtrMut<'a, *mut GstEvent> for Event
sourceimpl ToValueOptional for Event
impl ToValueOptional for Event
sourcefn 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 ValueTypeOptional for Event
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcepub fn ensure_type()
pub fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
pub fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcepub fn to_send_value(&self) -> SendValue
pub fn to_send_value(&self) -> SendValue
Returns a SendValue
clone of self
.