#[repr(transparent)]pub struct Event { /* private fields */ }
Implementations§
source§impl 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
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
§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
§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 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 = (Vec<Stash<'a, *mut GstEvent, Event>, Global>, Option<Vec<*mut GstEvent, Global>>)
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 = (Vec<Stash<'a, *mut GstEvent, Event>, Global>, Option<Vec<*mut GstEvent, Global>>)
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
impl Send for Event
impl Sync for Event
impl ValueTypeOptional for Event
Auto Trait Implementations§
Blanket Implementations§
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> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
source§impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.