pub struct VulkanGateSignal { /* private fields */ }Expand description
The raising half of a VulkanHostGate, for any thread.
Implementations§
Source§impl VulkanGateSignal
impl VulkanGateSignal
Sourcepub fn raise(&self, value: u64) -> Result<bool, BackendError>
pub fn raise(&self, value: u64) -> Result<bool, BackendError>
Raise the gate to value, releasing every submission waiting for it or less. A value at
or below the gate’s current one changes nothing, so raises may arrive in any order.
Returns false, raising nothing, once the gate has been dropped.
Trait Implementations§
Source§impl Clone for VulkanGateSignal
impl Clone for VulkanGateSignal
Source§fn clone(&self) -> VulkanGateSignal
fn clone(&self) -> VulkanGateSignal
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 moreAuto Trait Implementations§
impl Freeze for VulkanGateSignal
impl RefUnwindSafe for VulkanGateSignal
impl Send for VulkanGateSignal
impl Sync for VulkanGateSignal
impl Unpin for VulkanGateSignal
impl UnsafeUnpin for VulkanGateSignal
impl UnwindSafe for VulkanGateSignal
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