#[repr(transparent)]pub struct Message { /* private fields */ }
Implementations
sourceimpl Message
impl Message
pub unsafe fn from_glib_none(ptr: *const GstMessage) -> Self
pub unsafe fn from_glib_full(ptr: *const GstMessage) -> Self
pub unsafe fn from_glib_borrow(ptr: *const GstMessage) -> Borrowed<Self>
pub unsafe fn replace_ptr(&mut self, ptr: *mut GstMessage)
pub fn make_mut(&mut self) -> &mut MessageRef
pub fn get_mut(&mut self) -> Option<&mut MessageRef>
pub fn is_writable(&self) -> bool
pub fn upcast(self) -> MiniObject
pub unsafe fn into_ptr(self) -> *mut GstMessage
Methods from Deref<Target = MessageRef>
pub unsafe fn as_ptr(&self) -> *const GstMessage
pub unsafe fn as_mut_ptr(&self) -> *mut GstMessage
pub fn copy(&self) -> Message
pub fn upcast_ref(&self) -> &MiniObjectRef
Trait Implementations
sourceimpl AsRef<MessageRef> for Message
impl AsRef<MessageRef> for Message
sourcefn as_ref(&self) -> &MessageRef
fn as_ref(&self) -> &MessageRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<MessageRef> for Message
impl Borrow<MessageRef> for Message
sourcefn borrow(&self) -> &MessageRef
fn borrow(&self) -> &MessageRef
Immutably borrows from an owned value. Read more
sourceimpl Deref for Message
impl Deref for Message
type Target = MessageRef
type Target = MessageRef
The resulting type after dereferencing.
sourceimpl FromGlibContainerAsVec<*mut GstMessage, *const *mut GstMessage> for Message
impl FromGlibContainerAsVec<*mut GstMessage, *const *mut GstMessage> for Message
unsafe fn from_glib_none_num_as_vec(
ptr: *const *mut GstMessage,
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 GstMessage,
_: 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 GstMessage,
_: usize
) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl FromGlibContainerAsVec<*mut GstMessage, *mut *mut GstMessage> for Message
impl FromGlibContainerAsVec<*mut GstMessage, *mut *mut GstMessage> for Message
unsafe fn from_glib_none_num_as_vec(
ptr: *mut *mut GstMessage,
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 GstMessage,
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 GstMessage,
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 GstMessage, *const *mut GstMessage> for Message
impl FromGlibPtrArrayContainerAsVec<*mut GstMessage, *const *mut GstMessage> for Message
unsafe fn from_glib_none_as_vec(ptr: *const *mut GstMessage) -> 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 GstMessage) -> 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 GstMessage) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl FromGlibPtrArrayContainerAsVec<*mut GstMessage, *mut *mut GstMessage> for Message
impl FromGlibPtrArrayContainerAsVec<*mut GstMessage, *mut *mut GstMessage> for Message
unsafe fn from_glib_none_as_vec(ptr: *mut *mut GstMessage) -> 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 GstMessage) -> 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 GstMessage) -> Vec<Self>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl FromGlibPtrBorrow<*const GstMessage> for Message
impl FromGlibPtrBorrow<*const GstMessage> for Message
sourceunsafe fn from_glib_borrow(ptr: *const GstMessage) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *const GstMessage) -> Borrowed<Self>
Safety Read more
sourceimpl FromGlibPtrBorrow<*mut GstMessage> for Message
impl FromGlibPtrBorrow<*mut GstMessage> for Message
sourceunsafe fn from_glib_borrow(ptr: *mut GstMessage) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *mut GstMessage) -> Borrowed<Self>
Safety Read more
sourceimpl FromGlibPtrFull<*const GstMessage> for Message
impl FromGlibPtrFull<*const GstMessage> for Message
sourceunsafe fn from_glib_full(ptr: *const GstMessage) -> Self
unsafe fn from_glib_full(ptr: *const GstMessage) -> Self
Safety Read more
sourceimpl FromGlibPtrFull<*mut GstMessage> for Message
impl FromGlibPtrFull<*mut GstMessage> for Message
sourceunsafe fn from_glib_full(ptr: *mut GstMessage) -> Self
unsafe fn from_glib_full(ptr: *mut GstMessage) -> Self
Safety Read more
sourceimpl FromGlibPtrNone<*const GstMessage> for Message
impl FromGlibPtrNone<*const GstMessage> for Message
sourceunsafe fn from_glib_none(ptr: *const GstMessage) -> Self
unsafe fn from_glib_none(ptr: *const GstMessage) -> Self
Safety Read more
sourceimpl FromGlibPtrNone<*mut GstMessage> for Message
impl FromGlibPtrNone<*mut GstMessage> for Message
sourceunsafe fn from_glib_none(ptr: *mut GstMessage) -> Self
unsafe fn from_glib_none(ptr: *mut GstMessage) -> Self
Safety Read more
sourceimpl<'a> FromValue<'a> for Message
impl<'a> FromValue<'a> for Message
type Checker = GenericValueTypeOrNoneChecker<Message>
type Checker = GenericValueTypeOrNoneChecker<Message>
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 Message
impl<'a> FromValue<'a> for &'a Message
type Checker = GenericValueTypeOrNoneChecker<&'a Message>
type Checker = GenericValueTypeOrNoneChecker<&'a Message>
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 GlibPtrDefault for Message
impl GlibPtrDefault for Message
type GlibType = *mut GstMessage
sourceimpl IsMiniObject for Message
impl IsMiniObject for Message
type RefType = MessageRef
type FfiType = GstMessage
sourceimpl StaticType for Message
impl StaticType for Message
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl<'a> ToGlibContainerFromSlice<'a, *const *mut GstMessage> for Message
impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstMessage> for Message
type Storage = (Vec<Stash<'a, *mut GstMessage, Message>, Global>, Option<Vec<*mut GstMessage, Global>>)
fn to_glib_none_from_slice(
t: &'a [Message]
) -> (*const *mut GstMessage, Self::Storage)
fn to_glib_container_from_slice(
_: &'a [Message]
) -> (*const *mut GstMessage, Self::Storage)
fn to_glib_full_from_slice(_: &[Message]) -> *const *mut GstMessage
sourceimpl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstMessage> for Message
impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstMessage> for Message
type Storage = (Vec<Stash<'a, *mut GstMessage, Message>, Global>, Option<Vec<*mut GstMessage, Global>>)
fn to_glib_none_from_slice(
t: &'a [Message]
) -> (*mut *mut GstMessage, Self::Storage)
fn to_glib_container_from_slice(
t: &'a [Message]
) -> (*mut *mut GstMessage, Self::Storage)
fn to_glib_full_from_slice(t: &[Message]) -> *mut *mut GstMessage
sourceimpl<'a> ToGlibPtr<'a, *const GstMessage> for Message
impl<'a> ToGlibPtr<'a, *const GstMessage> for Message
type Storage = &'a Message
sourcefn to_glib_none(&'a self) -> Stash<'a, *const GstMessage, Self>
fn to_glib_none(&'a self) -> Stash<'a, *const GstMessage, Self>
Transfer: none. Read more
sourcefn to_glib_full(&self) -> *const GstMessage
fn to_glib_full(&self) -> *const GstMessage
Transfer: full. Read more
sourcefn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
sourceimpl<'a> ToGlibPtr<'a, *mut GstMessage> for Message
impl<'a> ToGlibPtr<'a, *mut GstMessage> for Message
type Storage = &'a Message
sourcefn to_glib_none(&'a self) -> Stash<'a, *mut GstMessage, Self>
fn to_glib_none(&'a self) -> Stash<'a, *mut GstMessage, Self>
Transfer: none. Read more
sourcefn to_glib_full(&self) -> *mut GstMessage
fn to_glib_full(&self) -> *mut GstMessage
Transfer: full. Read more
sourcefn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
sourceimpl<'a> ToGlibPtrMut<'a, *mut GstMessage> for Message
impl<'a> ToGlibPtrMut<'a, *mut GstMessage> for Message
type Storage = &'a mut Message
sourcefn to_glib_none_mut(&'a mut self) -> StashMut<'_, *mut GstMessage, Self>
fn to_glib_none_mut(&'a mut self) -> StashMut<'_, *mut GstMessage, Self>
Transfer: none. Read more
sourceimpl ToValueOptional for Message
impl ToValueOptional for Message
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 Message
impl Sync for Message
impl ValueTypeOptional for Message
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 · sourcefn borrow_mut(&mut self) -> &mut T
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,
sourcefn ensure_type()
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,
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.
sourcefn clone_into(&self, target: &mut T)
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,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a SendValue
clone of self
.