pub struct SignalObjectId(/* private fields */);Expand description
Opaque identity of an object mentioned by an OBS callback.
This is deliberately not a raw pointer and cannot be dereferenced. Callback data is often borrowed only for the duration of the C callback; exposing that pointer as a sendable Rust value allowed use-after-free in otherwise safe code.
Implementations§
Trait Implementations§
Source§impl Clone for SignalObjectId
impl Clone for SignalObjectId
Source§fn clone(&self) -> SignalObjectId
fn clone(&self) -> SignalObjectId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SignalObjectId
Source§impl Debug for SignalObjectId
impl Debug for SignalObjectId
impl Eq for SignalObjectId
Source§impl Hash for SignalObjectId
impl Hash for SignalObjectId
Source§impl PartialEq for SignalObjectId
impl PartialEq for SignalObjectId
impl StructuralPartialEq for SignalObjectId
Auto Trait Implementations§
impl Freeze for SignalObjectId
impl RefUnwindSafe for SignalObjectId
impl Send for SignalObjectId
impl Sync for SignalObjectId
impl Unpin for SignalObjectId
impl UnsafeUnpin for SignalObjectId
impl UnwindSafe for SignalObjectId
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