pub struct EventObject<Device: VkHandle<Handle = VkDevice>>(/* private fields */);
Implementations§
Source§impl<Device: VkHandle<Handle = VkDevice>> EventObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> EventObject<Device>
Source§impl<Device: VkHandle<Handle = VkDevice> + Clone> EventObject<&Device>
impl<Device: VkHandle<Handle = VkDevice> + Clone> EventObject<&Device>
Sourcepub fn clone_parent(self) -> EventObject<Device>
pub fn clone_parent(self) -> EventObject<Device>
Owning parent object by cloning it.
Source§impl<Device: Device> EventObject<Device>
impl<Device: Device> EventObject<Device>
Sourcepub fn new(device: Device, create_info: &EventCreateInfo) -> Result<Self>
Available on crate feature Implements
only.
pub fn new(device: Device, create_info: &EventCreateInfo) -> Result<Self>
Implements
only.Trait Implementations§
Source§impl<Device: Device> DeviceChild for EventObject<Device>
impl<Device: Device> DeviceChild for EventObject<Device>
Source§type ConcreteDevice = Device
type ConcreteDevice = Device
A concrete type of the parent device object.
Source§fn device(&self) -> &Self::ConcreteDevice
fn device(&self) -> &Self::ConcreteDevice
Retrieve a reference to a device object that creates this object
Source§impl<Device: VkHandle<Handle = VkDevice>> DeviceChildHandle for EventObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> DeviceChildHandle for EventObject<Device>
Source§fn device_handle(&self) -> VkDevice
fn device_handle(&self) -> VkDevice
Retrieve a reference to a device handle that creates this objecs
Source§impl<Device: VkHandle<Handle = VkDevice>> Drop for EventObject<Device>
Available on crate feature Implements
only.
impl<Device: VkHandle<Handle = VkDevice>> Drop for EventObject<Device>
Available on crate feature
Implements
only.Source§impl<Device: VkHandle<Handle = VkDevice>> VkHandle for EventObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> VkHandle for EventObject<Device>
type Handle = VkEvent
Source§fn native_ptr(&self) -> Self::Handle
fn native_ptr(&self) -> Self::Handle
Retrieve an underlying handle
fn as_transparent_ref(&self) -> VkHandleRef<'_, Self::Handle>
Source§impl<Device: VkHandle<Handle = VkDevice>> VkHandleMut for EventObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> VkHandleMut for EventObject<Device>
Source§fn native_ptr_mut(&mut self) -> Self::Handle
fn native_ptr_mut(&mut self) -> Self::Handle
Retrieve an underlying mutable handle
fn as_transparent_ref_mut(&mut self) -> VkHandleRefMut<'_, Self::Handle>
Source§impl<Device: VkHandle<Handle = VkDevice>> VkObject for EventObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> VkObject for EventObject<Device>
const TYPE: VkObjectType = 11i32
Source§fn set_name(&self, name: Option<&CStr>) -> Result<()>where
Self: DeviceChild<ConcreteDevice: InstanceChild<ConcreteInstance: InstanceExtensions>>,
Self::Handle: VkRawHandle,
fn set_name(&self, name: Option<&CStr>) -> Result<()>where
Self: DeviceChild<ConcreteDevice: InstanceChild<ConcreteInstance: InstanceExtensions>>,
Self::Handle: VkRawHandle,
Available on crate features
Implements
and VK_EXT_debug_utils
only.Give a user-friendly name to this object. Read more
impl<Device: VkHandle<Handle = VkDevice> + Send> Send for EventObject<Device>
impl<Device: VkHandle<Handle = VkDevice> + Sync> Sync for EventObject<Device>
Auto Trait Implementations§
impl<Device> Freeze for EventObject<Device>where
Device: Freeze,
impl<Device> RefUnwindSafe for EventObject<Device>where
Device: RefUnwindSafe,
impl<Device> Unpin for EventObject<Device>where
Device: Unpin,
impl<Device> UnwindSafe for EventObject<Device>where
Device: UnwindSafe,
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