Struct gstreamer::event::Event[][src]

pub struct Event { /* fields omitted */ }

Implementations

impl Event[src]

pub unsafe fn from_glib_none(ptr: *const GstEvent) -> Self[src]

pub unsafe fn from_glib_full(ptr: *const GstEvent) -> Self[src]

pub unsafe fn from_glib_borrow(ptr: *const GstEvent) -> Borrowed<Self>[src]

pub unsafe fn replace_ptr(&mut self, ptr: *mut GstEvent)[src]

pub fn make_mut(&mut self) -> &mut EventRef[src]

pub fn get_mut(&mut self) -> Option<&mut EventRef>[src]

pub fn is_writable(&self) -> bool[src]

pub unsafe fn into_ptr(self) -> *mut GstEvent[src]

Methods from Deref<Target = EventRef>

pub unsafe fn as_ptr(&self) -> *const GstEvent[src]

pub unsafe fn as_mut_ptr(&self) -> *mut GstEvent[src]

pub fn copy(&self) -> Event[src]

pub fn seqnum(&self) -> Seqnum[src]

pub fn running_time_offset(&self) -> i64[src]

pub fn structure(&self) -> Option<&StructureRef>[src]

pub fn is_upstream(&self) -> bool[src]

pub fn is_downstream(&self) -> bool[src]

pub fn is_serialized(&self) -> bool[src]

pub fn is_sticky(&self) -> bool[src]

pub fn is_sticky_multi(&self) -> bool[src]

pub fn type_(&self) -> EventType[src]

pub fn view(&self) -> EventView<'_>[src]

Trait Implementations

impl AsRef<EventRef> for Event[src]

fn as_ref(&self) -> &EventRef[src]

Performs the conversion.

impl Borrow<EventRef> for Event[src]

fn borrow(&self) -> &EventRef[src]

Immutably borrows from an owned value. Read more

impl Clone for Event[src]

fn clone(&self) -> Self[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Event[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Deref for Event[src]

type Target = EventRef

The resulting type after dereferencing.

fn deref(&self) -> &Self::Target[src]

Dereferences the value.

impl Drop for Event[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

impl FromGlibContainerAsVec<*mut GstEvent, *const *mut GstEvent> for Event[src]

unsafe fn from_glib_none_num_as_vec(
    ptr: *const *mut GstEvent,
    num: usize
) -> Vec<Self>
[src]

unsafe fn from_glib_container_num_as_vec(
    _: *const *mut GstEvent,
    _: usize
) -> Vec<Self>
[src]

unsafe fn from_glib_full_num_as_vec(
    _: *const *mut GstEvent,
    _: usize
) -> Vec<Self>
[src]

impl FromGlibContainerAsVec<*mut GstEvent, *mut *mut GstEvent> for Event[src]

unsafe fn from_glib_none_num_as_vec(
    ptr: *mut *mut GstEvent,
    num: usize
) -> Vec<Self>
[src]

unsafe fn from_glib_container_num_as_vec(
    ptr: *mut *mut GstEvent,
    num: usize
) -> Vec<Self>
[src]

unsafe fn from_glib_full_num_as_vec(
    ptr: *mut *mut GstEvent,
    num: usize
) -> Vec<Self>
[src]

impl FromGlibPtrArrayContainerAsVec<*mut GstEvent, *const *mut GstEvent> for Event[src]

unsafe fn from_glib_none_as_vec(ptr: *const *mut GstEvent) -> Vec<Self>[src]

unsafe fn from_glib_container_as_vec(_: *const *mut GstEvent) -> Vec<Self>[src]

unsafe fn from_glib_full_as_vec(_: *const *mut GstEvent) -> Vec<Self>[src]

impl FromGlibPtrArrayContainerAsVec<*mut GstEvent, *mut *mut GstEvent> for Event[src]

unsafe fn from_glib_none_as_vec(ptr: *mut *mut GstEvent) -> Vec<Self>[src]

unsafe fn from_glib_container_as_vec(ptr: *mut *mut GstEvent) -> Vec<Self>[src]

unsafe fn from_glib_full_as_vec(ptr: *mut *mut GstEvent) -> Vec<Self>[src]

impl FromGlibPtrBorrow<*const GstEvent> for Event[src]

unsafe fn from_glib_borrow(ptr: *const GstEvent) -> Borrowed<Self>[src]

Safety Read more

impl FromGlibPtrBorrow<*mut GstEvent> for Event[src]

unsafe fn from_glib_borrow(ptr: *mut GstEvent) -> Borrowed<Self>[src]

Safety Read more

impl FromGlibPtrFull<*const GstEvent> for Event[src]

unsafe fn from_glib_full(ptr: *const GstEvent) -> Self[src]

Safety Read more

impl FromGlibPtrFull<*mut GstEvent> for Event[src]

unsafe fn from_glib_full(ptr: *mut GstEvent) -> Self[src]

Safety Read more

impl FromGlibPtrNone<*const GstEvent> for Event[src]

unsafe fn from_glib_none(ptr: *const GstEvent) -> Self[src]

Safety Read more

impl FromGlibPtrNone<*mut GstEvent> for Event[src]

unsafe fn from_glib_none(ptr: *mut GstEvent) -> Self[src]

Safety Read more

impl<'a> FromValue<'a> for Event[src]

type Checker = GenericValueTypeOrNoneChecker<Self>

Value type checker.

unsafe fn from_value(value: &'a Value) -> Self[src]

Get the contained value from a Value. Read more

impl GlibPtrDefault for Event[src]

type GlibType = *mut GstEvent

impl StaticType for Event[src]

fn static_type() -> Type[src]

Returns the type identifier of Self.

impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstEvent> for Event[src]

impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstEvent> for Event[src]

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)
[src]

fn to_glib_container_from_slice(
    t: &'a [Event]
) -> (*mut *mut GstEvent, Self::Storage)
[src]

fn to_glib_full_from_slice(t: &[Event]) -> *mut *mut GstEvent[src]

impl<'a> ToGlibPtr<'a, *const GstEvent> for Event[src]

type Storage = &'a Self

fn to_glib_none(&'a self) -> Stash<'a, *const GstEvent, Self>[src]

Transfer: none. Read more

fn to_glib_full(&self) -> *const GstEvent[src]

Transfer: full. Read more

fn to_glib_container(&'a self) -> Stash<'a, P, Self>[src]

Transfer: container. Read more

impl<'a> ToGlibPtr<'a, *mut GstEvent> for Event[src]

type Storage = &'a Self

fn to_glib_none(&'a self) -> Stash<'a, *mut GstEvent, Self>[src]

Transfer: none. Read more

fn to_glib_full(&self) -> *mut GstEvent[src]

Transfer: full. Read more

fn to_glib_container(&'a self) -> Stash<'a, P, Self>[src]

Transfer: container. Read more

impl<'a> ToGlibPtrMut<'a, *mut GstEvent> for Event[src]

type Storage = &'a mut Self

fn to_glib_none_mut(&'a mut self) -> StashMut<'_, *mut GstEvent, Self>[src]

Transfer: none. Read more

impl ToValue for Event[src]

fn to_value(&self) -> Value[src]

Convert a value to a Value.

fn value_type(&self) -> Type[src]

Returns the type identifer of self. Read more

impl ToValueOptional for Event[src]

fn to_value_optional(s: Option<&Self>) -> Value[src]

Convert an Option to a Value.

impl ValueType for Event[src]

type Type = Self

Type to get the Type from. Read more

impl Send for Event[src]

impl Sync for Event[src]

Auto Trait Implementations

impl RefUnwindSafe for Event

impl Unpin for Event

impl UnwindSafe for Event

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> ToSendValue for T where
    T: Send + ToValue + ?Sized
[src]

pub fn to_send_value(&self) -> SendValue[src]

Returns a SendValue clone of self.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<'a, T, C> FromValueOptional<'a> for T where
    C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
    T: FromValue<'a, Checker = C>, 
[src]