#[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
Methods from Deref<Target = MessageRef>
pub fn as_ptr(&self) -> *const GstMessage
pub 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 From<Application<Message>> for Message
impl From<Application<Message>> for Message
sourcefn from(concrete: Application<Message>) -> Self
fn from(concrete: Application<Message>) -> Self
Converts to this type from the input type.
sourceimpl From<AsyncStart<Message>> for Message
impl From<AsyncStart<Message>> for Message
sourcefn from(concrete: AsyncStart<Message>) -> Self
fn from(concrete: AsyncStart<Message>) -> Self
Converts to this type from the input type.
sourceimpl From<ClockProvide<Message>> for Message
impl From<ClockProvide<Message>> for Message
sourcefn from(concrete: ClockProvide<Message>) -> Self
fn from(concrete: ClockProvide<Message>) -> Self
Converts to this type from the input type.
sourceimpl From<DeviceAdded<Message>> for Message
impl From<DeviceAdded<Message>> for Message
sourcefn from(concrete: DeviceAdded<Message>) -> Self
fn from(concrete: DeviceAdded<Message>) -> Self
Converts to this type from the input type.
sourceimpl From<DeviceChanged<Message>> for Message
impl From<DeviceChanged<Message>> for Message
sourcefn from(concrete: DeviceChanged<Message>) -> Self
fn from(concrete: DeviceChanged<Message>) -> Self
Converts to this type from the input type.
sourceimpl From<DeviceRemoved<Message>> for Message
impl From<DeviceRemoved<Message>> for Message
sourcefn from(concrete: DeviceRemoved<Message>) -> Self
fn from(concrete: DeviceRemoved<Message>) -> Self
Converts to this type from the input type.
sourceimpl From<DurationChanged<Message>> for Message
impl From<DurationChanged<Message>> for Message
sourcefn from(concrete: DurationChanged<Message>) -> Self
fn from(concrete: DurationChanged<Message>) -> Self
Converts to this type from the input type.
sourceimpl From<HaveContext<Message>> for Message
impl From<HaveContext<Message>> for Message
sourcefn from(concrete: HaveContext<Message>) -> Self
fn from(concrete: HaveContext<Message>) -> Self
Converts to this type from the input type.
sourceimpl From<InstantRateRequest<Message>> for Message
impl From<InstantRateRequest<Message>> for Message
sourcefn from(concrete: InstantRateRequest<Message>) -> Self
fn from(concrete: InstantRateRequest<Message>) -> Self
Converts to this type from the input type.
sourceimpl From<NeedContext<Message>> for Message
impl From<NeedContext<Message>> for Message
sourcefn from(concrete: NeedContext<Message>) -> Self
fn from(concrete: NeedContext<Message>) -> Self
Converts to this type from the input type.
sourceimpl From<PropertyNotify<Message>> for Message
impl From<PropertyNotify<Message>> for Message
sourcefn from(concrete: PropertyNotify<Message>) -> Self
fn from(concrete: PropertyNotify<Message>) -> Self
Converts to this type from the input type.
sourceimpl From<RequestState<Message>> for Message
impl From<RequestState<Message>> for Message
sourcefn from(concrete: RequestState<Message>) -> Self
fn from(concrete: RequestState<Message>) -> Self
Converts to this type from the input type.
sourceimpl From<SegmentDone<Message>> for Message
impl From<SegmentDone<Message>> for Message
sourcefn from(concrete: SegmentDone<Message>) -> Self
fn from(concrete: SegmentDone<Message>) -> Self
Converts to this type from the input type.
sourceimpl From<SegmentStart<Message>> for Message
impl From<SegmentStart<Message>> for Message
sourcefn from(concrete: SegmentStart<Message>) -> Self
fn from(concrete: SegmentStart<Message>) -> Self
Converts to this type from the input type.
sourceimpl From<StateChanged<Message>> for Message
impl From<StateChanged<Message>> for Message
sourcefn from(concrete: StateChanged<Message>) -> Self
fn from(concrete: StateChanged<Message>) -> Self
Converts to this type from the input type.
sourceimpl From<StateDirty<Message>> for Message
impl From<StateDirty<Message>> for Message
sourcefn from(concrete: StateDirty<Message>) -> Self
fn from(concrete: StateDirty<Message>) -> Self
Converts to this type from the input type.
sourceimpl From<StreamCollection<Message>> for Message
impl From<StreamCollection<Message>> for Message
sourcefn from(concrete: StreamCollection<Message>) -> Self
fn from(concrete: StreamCollection<Message>) -> Self
Converts to this type from the input type.
sourceimpl From<StreamStart<Message>> for Message
impl From<StreamStart<Message>> for Message
sourcefn from(concrete: StreamStart<Message>) -> Self
fn from(concrete: StreamStart<Message>) -> Self
Converts to this type from the input type.
sourceimpl From<StreamStatus<Message>> for Message
impl From<StreamStatus<Message>> for Message
sourcefn from(concrete: StreamStatus<Message>) -> Self
fn from(concrete: StreamStatus<Message>) -> Self
Converts to this type from the input type.
sourceimpl From<StreamsSelected<Message>> for Message
impl From<StreamsSelected<Message>> for Message
sourcefn from(concrete: StreamsSelected<Message>) -> Self
fn from(concrete: StreamsSelected<Message>) -> Self
Converts to this type from the input type.
sourceimpl From<StructureChange<Message>> for Message
impl From<StructureChange<Message>> for Message
sourcefn from(concrete: StructureChange<Message>) -> Self
fn from(concrete: StructureChange<Message>) -> Self
Converts to this type from the input type.
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 &'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 moresourceimpl<'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 moresourceimpl GlibPtrDefault for Message
impl GlibPtrDefault for Message
type GlibType = *mut GstMessage
sourceimpl IntoGlibPtr<*mut GstMessage> for Message
impl IntoGlibPtr<*mut GstMessage> for Message
sourceunsafe fn into_glib_ptr(self) -> *mut GstMessage
unsafe fn into_glib_ptr(self) -> *mut GstMessage
Transfer: full.
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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 Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.