Struct gstreamer::context::Context [−][src]
pub struct Context { /* fields omitted */ }
Implementations
impl Context
[src]
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]
impl Context
[src]pub fn new(context_type: &str, persistent: bool) -> Self
[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 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 structure(&self) -> &StructureRef
[src]
Trait Implementations
impl AsRef<ContextRef> for Context
[src]
impl AsRef<ContextRef> for Context
[src]fn as_ref(&self) -> &ContextRef
[src]
fn as_ref(&self) -> &ContextRef
[src]Performs the conversion.
impl Borrow<ContextRef> for Context
[src]
impl Borrow<ContextRef> for Context
[src]fn borrow(&self) -> &ContextRef
[src]
fn borrow(&self) -> &ContextRef
[src]Immutably borrows from an owned value. Read more
impl Deref for Context
[src]
impl Deref for Context
[src]type Target = ContextRef
type Target = ContextRef
The resulting type after dereferencing.
impl FromGlibPtrArrayContainerAsVec<*mut GstContext, *const *mut GstContext> for Context
[src]
impl FromGlibPtrArrayContainerAsVec<*mut GstContext, *const *mut GstContext> for Context
[src]unsafe fn from_glib_none_as_vec(ptr: *const *mut GstContext) -> Vec<Self>
[src]
unsafe fn from_glib_container_as_vec(_: *const *mut GstContext) -> Vec<Self>
[src]
unsafe fn from_glib_full_as_vec(_: *const *mut GstContext) -> Vec<Self>
[src]
impl FromGlibPtrArrayContainerAsVec<*mut GstContext, *mut *mut GstContext> for Context
[src]
impl FromGlibPtrArrayContainerAsVec<*mut GstContext, *mut *mut GstContext> for Context
[src]unsafe fn from_glib_none_as_vec(ptr: *mut *mut GstContext) -> Vec<Self>
[src]
unsafe fn from_glib_container_as_vec(ptr: *mut *mut GstContext) -> Vec<Self>
[src]
unsafe fn from_glib_full_as_vec(ptr: *mut *mut GstContext) -> Vec<Self>
[src]
impl FromGlibPtrBorrow<*const GstContext> for Context
[src]
impl FromGlibPtrBorrow<*const GstContext> for Context
[src]unsafe fn from_glib_borrow(ptr: *const GstContext) -> Borrowed<Self>
[src]
unsafe fn from_glib_borrow(ptr: *const GstContext) -> Borrowed<Self>
[src]Safety Read more
impl FromGlibPtrBorrow<*mut GstContext> for Context
[src]
impl FromGlibPtrBorrow<*mut GstContext> for Context
[src]unsafe fn from_glib_borrow(ptr: *mut GstContext) -> Borrowed<Self>
[src]
unsafe fn from_glib_borrow(ptr: *mut GstContext) -> Borrowed<Self>
[src]Safety Read more
impl FromGlibPtrFull<*const GstContext> for Context
[src]
impl FromGlibPtrFull<*const GstContext> for Context
[src]unsafe fn from_glib_full(ptr: *const GstContext) -> Self
[src]
unsafe fn from_glib_full(ptr: *const GstContext) -> Self
[src]Safety Read more
impl FromGlibPtrFull<*mut GstContext> for Context
[src]
impl FromGlibPtrFull<*mut GstContext> for Context
[src]unsafe fn from_glib_full(ptr: *mut GstContext) -> Self
[src]
unsafe fn from_glib_full(ptr: *mut GstContext) -> Self
[src]Safety Read more
impl FromGlibPtrNone<*const GstContext> for Context
[src]
impl FromGlibPtrNone<*const GstContext> for Context
[src]unsafe fn from_glib_none(ptr: *const GstContext) -> Self
[src]
unsafe fn from_glib_none(ptr: *const GstContext) -> Self
[src]Safety Read more
impl FromGlibPtrNone<*mut GstContext> for Context
[src]
impl FromGlibPtrNone<*mut GstContext> for Context
[src]unsafe fn from_glib_none(ptr: *mut GstContext) -> Self
[src]
unsafe fn from_glib_none(ptr: *mut GstContext) -> Self
[src]Safety Read more
impl<'a> FromValue<'a> for Context
[src]
impl<'a> FromValue<'a> for Context
[src]type Checker = GenericValueTypeOrNoneChecker<Self>
type Checker = GenericValueTypeOrNoneChecker<Self>
Value type checker.
unsafe fn from_value(value: &'a Value) -> Self
[src]
unsafe fn from_value(value: &'a Value) -> Self
[src]Get the contained value from a Value
. Read more
impl GlibPtrDefault for Context
[src]
impl GlibPtrDefault for Context
[src]impl StaticType for Context
[src]
impl StaticType for Context
[src]fn static_type() -> Type
[src]
fn static_type() -> Type
[src]Returns the type identifier of Self
.
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstContext> for Context
[src]
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstContext> for Context
[src]type Storage = (Vec<Stash<'a, *mut GstContext, Context>>, Option<Vec<*mut GstContext>>)
fn to_glib_none_from_slice(
t: &'a [Context]
) -> (*const *mut GstContext, Self::Storage)
[src]
t: &'a [Context]
) -> (*const *mut GstContext, Self::Storage)
fn to_glib_container_from_slice(
_: &'a [Context]
) -> (*const *mut GstContext, Self::Storage)
[src]
_: &'a [Context]
) -> (*const *mut GstContext, Self::Storage)
fn to_glib_full_from_slice(_: &[Context]) -> *const *mut GstContext
[src]
impl<'a> ToGlibContainerFromSlice<'a, *mut *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>>)
fn to_glib_none_from_slice(
t: &'a [Context]
) -> (*mut *mut GstContext, Self::Storage)
[src]
t: &'a [Context]
) -> (*mut *mut GstContext, Self::Storage)
fn to_glib_container_from_slice(
t: &'a [Context]
) -> (*mut *mut GstContext, Self::Storage)
[src]
t: &'a [Context]
) -> (*mut *mut GstContext, Self::Storage)
fn to_glib_full_from_slice(t: &[Context]) -> *mut *mut GstContext
[src]
impl<'a> ToGlibPtr<'a, *const GstContext> for Context
[src]
impl<'a> ToGlibPtr<'a, *const GstContext> for Context
[src]type Storage = &'a Self
fn to_glib_none(&'a self) -> Stash<'a, *const GstContext, Self>
[src]
fn to_glib_none(&'a self) -> Stash<'a, *const GstContext, Self>
[src]Transfer: none. Read more
fn to_glib_full(&self) -> *const GstContext
[src]
fn to_glib_full(&self) -> *const GstContext
[src]Transfer: full. Read more
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]Transfer: container. Read more
impl<'a> ToGlibPtr<'a, *mut GstContext> for Context
[src]
impl<'a> ToGlibPtr<'a, *mut GstContext> for Context
[src]type Storage = &'a Self
fn to_glib_none(&'a self) -> Stash<'a, *mut GstContext, Self>
[src]
fn to_glib_none(&'a self) -> Stash<'a, *mut GstContext, Self>
[src]Transfer: none. Read more
fn to_glib_full(&self) -> *mut GstContext
[src]
fn to_glib_full(&self) -> *mut GstContext
[src]Transfer: full. Read more
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]Transfer: container. Read more
impl<'a> ToGlibPtrMut<'a, *mut GstContext> for Context
[src]
impl<'a> ToGlibPtrMut<'a, *mut GstContext> for Context
[src]impl ToValueOptional for Context
[src]
impl ToValueOptional for Context
[src]fn to_value_optional(s: Option<&Self>) -> Value
[src]
fn to_value_optional(s: Option<&Self>) -> Value
[src]Convert an Option
to a Value
.
impl Send for Context
[src]
impl Sync for Context
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
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]
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]
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
[src]pub fn to_send_value(&self) -> SendValue
[src]
pub fn to_send_value(&self) -> SendValue
[src]Returns a SendValue
clone of self
.
impl<'a, T, C> FromValueOptional<'a> for T where
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
T: FromValue<'a, Checker = C>,
[src]
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
T: FromValue<'a, Checker = C>,