Struct gstreamer::message::MessageRef
source · pub struct MessageRef(/* private fields */);
Implementations§
source§impl MessageRef
impl MessageRef
pub fn as_ptr(&self) -> *const GstMessage
pub fn as_mut_ptr(&self) -> *mut GstMessage
pub unsafe fn from_ptr<'a>(ptr: *const GstMessage) -> &'a Self
pub unsafe fn from_mut_ptr<'a>(ptr: *mut GstMessage) -> &'a mut Self
pub fn copy(&self) -> Message
pub fn upcast_ref(&self) -> &MiniObjectRef
pub fn upcast_mut(&mut self) -> &mut MiniObjectRef
pub fn ptr_eq(this: &MessageRef, other: &MessageRef) -> bool
source§impl MessageRef
impl MessageRef
pub fn src(&self) -> Option<&Object>
pub fn seqnum(&self) -> Seqnum
pub fn structure(&self) -> Option<&StructureRef>
pub fn structure_mut(&mut self) -> &mut StructureRef
pub fn details(&self) -> Option<&StructureRef>
pub fn details_mut(&mut self) -> &mut StructureRef
pub fn set_details(&mut self, structure: Structure)
pub fn has_name(&self, name: &str) -> bool
pub fn view(&self) -> MessageView<'_>
pub fn type_(&self) -> MessageType
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 Debug for MessageRef
impl Debug for MessageRef
source§impl<'a> FromValue<'a> for &'a MessageRef
impl<'a> FromValue<'a> for &'a MessageRef
§type Checker = GenericValueTypeOrNoneChecker<&'a MessageRef>
type Checker = GenericValueTypeOrNoneChecker<&'a MessageRef>
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 MessageRef
impl GlibPtrDefault for MessageRef
type GlibType = *mut GstMessage
source§impl StaticType for MessageRef
impl StaticType for MessageRef
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToOwned for MessageRef
impl ToOwned for MessageRef
impl Send for MessageRef
impl Sync for MessageRef
Auto Trait Implementations§
impl Freeze for MessageRef
impl RefUnwindSafe for MessageRef
impl Unpin for MessageRef
impl UnwindSafe for MessageRef
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§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.