[][src]Struct bedrock::Event

pub struct Event(pub VkEvent, _);

Opaque handle to a event object

Methods

impl Event[src]

Following methods are enabled with [feature = "Implements"]

pub fn new(device: &Device) -> Result<Self>[src]

Create a new event object

Failures

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY

impl Event[src]

Following methods are enabled with [feature = "Implements"]

pub fn set(&self) -> Result<()>[src]

Set an event to signaled state

Failures

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY

pub fn reset(&self) -> Result<()>[src]

Reset an event to non-signaled state

Failures

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY

Trait Implementations

impl DeviceChild for Event[src]

impl Drop for Event[src]

impl Status for Event[src]

impl VkHandle for Event[src]

type Handle = VkEvent

Auto Trait Implementations

impl !RefUnwindSafe for Event

impl !Send for Event

impl !Sync for Event

impl Unpin for Event

impl !UnwindSafe for Event

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.