Trait Fence

Source
pub trait Fence:
    VkHandle<Handle = VkFence>
    + DeviceChildHandle
    + Status {
    // Provided methods
    fn wait_timeout(&self, timeout: u64) -> Result<bool> { ... }
    fn wait(&self) -> Result<()> { ... }
}

Provided Methods§

Source

fn wait_timeout(&self, timeout: u64) -> Result<bool>

Available on crate feature Implements only.

Wait for a fence to become signaled, returns Ok(true) if operation is timed out

§Failures

On failure, this command returns

Source

fn wait(&self) -> Result<()>

Available on crate feature Implements only.

Wait for a fence to become signaled

§Failures

On failure, this command returns

Implementations on Foreign Types§

Source§

impl<'s, T> Fence for &'s T
where T: Fence + ?Sized,

Source§

impl<'s, T> Fence for &'s mut T
where T: Fence + ?Sized,

Source§

impl<T> Fence for Box<T>
where T: Fence + ?Sized,

Source§

impl<T> Fence for Rc<T>
where T: Fence + ?Sized,

Source§

impl<T> Fence for Arc<T>
where T: Fence + ?Sized,

Source§

impl<T> Fence for Ref<'_, T>
where T: Fence + ?Sized,

Source§

impl<T> Fence for RefMut<'_, T>
where T: Fence + ?Sized,

Source§

impl<T> Fence for ManuallyDrop<T>
where T: Fence,

Source§

impl<T> Fence for MutexGuard<'_, T>
where T: Fence + ?Sized,

Source§

impl<T> Fence for RwLockReadGuard<'_, T>
where T: Fence + ?Sized,

Source§

impl<T> Fence for RwLockWriteGuard<'_, T>
where T: Fence + ?Sized,

Source§

impl<T> Fence for MutexGuard<'_, T>
where T: Fence + ?Sized,

Source§

impl<T> Fence for RwLockReadGuard<'_, T>
where T: Fence + ?Sized,

Source§

impl<T> Fence for RwLockWriteGuard<'_, T>
where T: Fence + ?Sized,

Implementors§

Source§

impl<Device: VkHandle<Handle = VkDevice>> Fence for FenceObject<Device>