#[repr(transparent)]pub struct Message { /* private fields */ }
Implementations§
source§impl 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§
source§impl AsRef<MessageRef> for Message
impl AsRef<MessageRef> for Message
source§fn as_ref(&self) -> &MessageRef
fn as_ref(&self) -> &MessageRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<MessageRef> for Message
impl Borrow<MessageRef> for Message
source§fn borrow(&self) -> &MessageRef
fn borrow(&self) -> &MessageRef
Immutably borrows from an owned value. Read more
source§impl From<Application<Message>> for Message
impl From<Application<Message>> for Message
source§fn from(concrete: Application<Message>) -> Self
fn from(concrete: Application<Message>) -> Self
Converts to this type from the input type.
source§impl From<AsyncStart<Message>> for Message
impl From<AsyncStart<Message>> for Message
source§fn from(concrete: AsyncStart<Message>) -> Self
fn from(concrete: AsyncStart<Message>) -> Self
Converts to this type from the input type.
source§impl From<ClockProvide<Message>> for Message
impl From<ClockProvide<Message>> for Message
source§fn from(concrete: ClockProvide<Message>) -> Self
fn from(concrete: ClockProvide<Message>) -> Self
Converts to this type from the input type.
source§impl From<DeviceAdded<Message>> for Message
impl From<DeviceAdded<Message>> for Message
source§fn from(concrete: DeviceAdded<Message>) -> Self
fn from(concrete: DeviceAdded<Message>) -> Self
Converts to this type from the input type.
source§impl From<DeviceChanged<Message>> for Message
impl From<DeviceChanged<Message>> for Message
source§fn from(concrete: DeviceChanged<Message>) -> Self
fn from(concrete: DeviceChanged<Message>) -> Self
Converts to this type from the input type.
source§impl From<DeviceRemoved<Message>> for Message
impl From<DeviceRemoved<Message>> for Message
source§fn from(concrete: DeviceRemoved<Message>) -> Self
fn from(concrete: DeviceRemoved<Message>) -> Self
Converts to this type from the input type.
source§impl From<DurationChanged<Message>> for Message
impl From<DurationChanged<Message>> for Message
source§fn from(concrete: DurationChanged<Message>) -> Self
fn from(concrete: DurationChanged<Message>) -> Self
Converts to this type from the input type.
source§impl From<HaveContext<Message>> for Message
impl From<HaveContext<Message>> for Message
source§fn from(concrete: HaveContext<Message>) -> Self
fn from(concrete: HaveContext<Message>) -> Self
Converts to this type from the input type.
source§impl From<InstantRateRequest<Message>> for Message
impl From<InstantRateRequest<Message>> for Message
source§fn from(concrete: InstantRateRequest<Message>) -> Self
fn from(concrete: InstantRateRequest<Message>) -> Self
Converts to this type from the input type.
source§impl From<NeedContext<Message>> for Message
impl From<NeedContext<Message>> for Message
source§fn from(concrete: NeedContext<Message>) -> Self
fn from(concrete: NeedContext<Message>) -> Self
Converts to this type from the input type.
source§impl From<PropertyNotify<Message>> for Message
impl From<PropertyNotify<Message>> for Message
source§fn from(concrete: PropertyNotify<Message>) -> Self
fn from(concrete: PropertyNotify<Message>) -> Self
Converts to this type from the input type.
source§impl From<RequestState<Message>> for Message
impl From<RequestState<Message>> for Message
source§fn from(concrete: RequestState<Message>) -> Self
fn from(concrete: RequestState<Message>) -> Self
Converts to this type from the input type.
source§impl From<SegmentDone<Message>> for Message
impl From<SegmentDone<Message>> for Message
source§fn from(concrete: SegmentDone<Message>) -> Self
fn from(concrete: SegmentDone<Message>) -> Self
Converts to this type from the input type.
source§impl From<SegmentStart<Message>> for Message
impl From<SegmentStart<Message>> for Message
source§fn from(concrete: SegmentStart<Message>) -> Self
fn from(concrete: SegmentStart<Message>) -> Self
Converts to this type from the input type.
source§impl From<StateChanged<Message>> for Message
impl From<StateChanged<Message>> for Message
source§fn from(concrete: StateChanged<Message>) -> Self
fn from(concrete: StateChanged<Message>) -> Self
Converts to this type from the input type.
source§impl From<StateDirty<Message>> for Message
impl From<StateDirty<Message>> for Message
source§fn from(concrete: StateDirty<Message>) -> Self
fn from(concrete: StateDirty<Message>) -> Self
Converts to this type from the input type.
source§impl From<StreamCollection<Message>> for Message
impl From<StreamCollection<Message>> for Message
source§fn from(concrete: StreamCollection<Message>) -> Self
fn from(concrete: StreamCollection<Message>) -> Self
Converts to this type from the input type.
source§impl From<StreamStart<Message>> for Message
impl From<StreamStart<Message>> for Message
source§fn from(concrete: StreamStart<Message>) -> Self
fn from(concrete: StreamStart<Message>) -> Self
Converts to this type from the input type.
source§impl From<StreamStatus<Message>> for Message
impl From<StreamStatus<Message>> for Message
source§fn from(concrete: StreamStatus<Message>) -> Self
fn from(concrete: StreamStatus<Message>) -> Self
Converts to this type from the input type.
source§impl From<StreamsSelected<Message>> for Message
impl From<StreamsSelected<Message>> for Message
source§fn from(concrete: StreamsSelected<Message>) -> Self
fn from(concrete: StreamsSelected<Message>) -> Self
Converts to this type from the input type.
source§impl From<StructureChange<Message>> for Message
impl From<StructureChange<Message>> for Message
source§fn from(concrete: StructureChange<Message>) -> Self
fn from(concrete: StructureChange<Message>) -> Self
Converts to this type from the input type.
source§impl 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> ⓘ
unsafe fn from_glib_container_num_as_vec(
_: *const *mut GstMessage,
_: usize
) -> Vec<Self> ⓘ
unsafe fn from_glib_full_num_as_vec(
_: *const *mut GstMessage,
_: usize
) -> Vec<Self> ⓘ
source§impl 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> ⓘ
unsafe fn from_glib_container_num_as_vec(
ptr: *mut *mut GstMessage,
num: usize
) -> Vec<Self> ⓘ
unsafe fn from_glib_full_num_as_vec(
ptr: *mut *mut GstMessage,
num: usize
) -> Vec<Self> ⓘ
source§impl 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> ⓘ
unsafe fn from_glib_container_as_vec(_: *const *mut GstMessage) -> Vec<Self> ⓘ
unsafe fn from_glib_full_as_vec(_: *const *mut GstMessage) -> Vec<Self> ⓘ
source§impl 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> ⓘ
unsafe fn from_glib_container_as_vec(ptr: *mut *mut GstMessage) -> Vec<Self> ⓘ
unsafe fn from_glib_full_as_vec(ptr: *mut *mut GstMessage) -> Vec<Self> ⓘ
source§impl FromGlibPtrBorrow<*const GstMessage> for Message
impl FromGlibPtrBorrow<*const GstMessage> for Message
source§unsafe fn from_glib_borrow(ptr: *const GstMessage) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *const GstMessage) -> Borrowed<Self>
Safety Read more
source§impl FromGlibPtrBorrow<*mut GstMessage> for Message
impl FromGlibPtrBorrow<*mut GstMessage> for Message
source§unsafe fn from_glib_borrow(ptr: *mut GstMessage) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *mut GstMessage) -> Borrowed<Self>
Safety Read more
source§impl FromGlibPtrFull<*const GstMessage> for Message
impl FromGlibPtrFull<*const GstMessage> for Message
source§unsafe fn from_glib_full(ptr: *const GstMessage) -> Self
unsafe fn from_glib_full(ptr: *const GstMessage) -> Self
Safety Read more
source§impl FromGlibPtrFull<*mut GstMessage> for Message
impl FromGlibPtrFull<*mut GstMessage> for Message
source§unsafe fn from_glib_full(ptr: *mut GstMessage) -> Self
unsafe fn from_glib_full(ptr: *mut GstMessage) -> Self
Safety Read more
source§impl FromGlibPtrNone<*const GstMessage> for Message
impl FromGlibPtrNone<*const GstMessage> for Message
source§unsafe fn from_glib_none(ptr: *const GstMessage) -> Self
unsafe fn from_glib_none(ptr: *const GstMessage) -> Self
Safety Read more
source§impl FromGlibPtrNone<*mut GstMessage> for Message
impl FromGlibPtrNone<*mut GstMessage> for Message
source§unsafe fn from_glib_none(ptr: *mut GstMessage) -> Self
unsafe fn from_glib_none(ptr: *mut GstMessage) -> Self
Safety Read more
source§impl<'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.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl<'a> FromValue<'a> for Message
impl<'a> FromValue<'a> for Message
§type Checker = GenericValueTypeOrNoneChecker<Message>
type Checker = GenericValueTypeOrNoneChecker<Message>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl GlibPtrDefault for Message
impl GlibPtrDefault for Message
type GlibType = *mut GstMessage
source§impl IntoGlibPtr<*mut GstMessage> for Message
impl IntoGlibPtr<*mut GstMessage> for Message
source§unsafe fn into_glib_ptr(self) -> *mut GstMessage
unsafe fn into_glib_ptr(self) -> *mut GstMessage
Transfer: full.
source§impl IsMiniObject for Message
impl IsMiniObject for Message
type RefType = MessageRef
type FfiType = GstMessage
source§impl StaticType for Message
impl StaticType for Message
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl<'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
source§impl<'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
source§impl<'a> ToGlibPtr<'a, *const GstMessage> for Message
impl<'a> ToGlibPtr<'a, *const GstMessage> for Message
type Storage = &'a Message
source§fn 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
source§fn to_glib_full(&self) -> *const GstMessage
fn to_glib_full(&self) -> *const GstMessage
Transfer: full. Read more
source§fn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
source§impl<'a> ToGlibPtr<'a, *mut GstMessage> for Message
impl<'a> ToGlibPtr<'a, *mut GstMessage> for Message
type Storage = &'a Message
source§fn 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
source§fn to_glib_full(&self) -> *mut GstMessage
fn to_glib_full(&self) -> *mut GstMessage
Transfer: full. Read more
source§fn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
source§impl<'a> ToGlibPtrMut<'a, *mut GstMessage> for Message
impl<'a> ToGlibPtrMut<'a, *mut GstMessage> for Message
type Storage = &'a mut Message
source§fn 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
source§impl ToValueOptional for Message
impl ToValueOptional for Message
impl Send for Message
impl Sync for Message
impl ValueTypeOptional for Message
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
source§impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.