[][src]Struct gstreamer::context::Context

pub struct Context { /* fields omitted */ }

Implementations

impl Context[src]

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

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

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

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

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

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

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

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

impl Context[src]

pub fn new(context_type: &str, persistent: bool) -> Self[src]

Create a new context.

context_type

Context type

persistent

Persistent context

Returns

The new context.

Methods from Deref<Target = ContextRef>

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

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

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

pub fn get_context_type(&self) -> &str[src]

pub fn has_context_type(&self, context_type: &str) -> bool[src]

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

pub fn get_structure(&self) -> &StructureRef[src]

Trait Implementations

impl AsRef<ContextRef> for Context[src]

impl Borrow<ContextRef> for Context[src]

impl Clone for Context[src]

impl Debug for Context[src]

impl Deref for Context[src]

type Target = ContextRef

The resulting type after dereferencing.

impl Drop for Context[src]

impl FromGlibContainerAsVec<*mut GstContext, *const *mut GstContext> for Context[src]

impl FromGlibContainerAsVec<*mut GstContext, *mut *mut GstContext> for Context[src]

impl FromGlibPtrArrayContainerAsVec<*mut GstContext, *const *mut GstContext> for Context[src]

impl FromGlibPtrArrayContainerAsVec<*mut GstContext, *mut *mut GstContext> for Context[src]

impl FromGlibPtrBorrow<*const GstContext> for Context[src]

impl FromGlibPtrBorrow<*mut GstContext> for Context[src]

impl FromGlibPtrFull<*const GstContext> for Context[src]

impl FromGlibPtrFull<*mut GstContext> for Context[src]

impl FromGlibPtrNone<*const GstContext> for Context[src]

impl FromGlibPtrNone<*mut GstContext> for Context[src]

impl<'a> FromValueOptional<'a> for Context[src]

impl GlibPtrDefault for Context[src]

type GlibType = *mut GstContext

impl Send for Context[src]

impl SetValue for Context[src]

impl SetValueOptional for Context[src]

impl StaticType for Context[src]

impl Sync for Context[src]

impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstContext> for Context[src]

impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstContext> for Context[src]

type Storage = (Vec<Stash<'a, *mut GstContext, Self>>, Option<Vec<*mut GstContext>>)

impl<'a> ToGlibPtr<'a, *const GstContext> for Context[src]

type Storage = &'a Self

impl<'a> ToGlibPtr<'a, *mut GstContext> for Context[src]

type Storage = &'a Self

impl<'a> ToGlibPtrMut<'a, *mut GstContext> for Context[src]

type Storage = &'a mut Self

Auto Trait Implementations

impl RefUnwindSafe for Context

impl Unpin for Context

impl UnwindSafe for Context

Blanket Implementations

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

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

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

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

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

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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.