pub struct RuntimeBarrier {
pub id: BarrierId,
pub scope: BarrierScope,
pub requested_at: Tick,
pub target_tick: Tick,
pub command_mode: CommandQueueMode,
pub state: BarrierState,
}Expand description
Full runtime barrier descriptor.
Fields§
§id: BarrierIdBarrier id.
scope: BarrierScopeBarrier scope.
requested_at: TickTick observed when requested.
target_tick: TickTick boundary selected for freezing.
command_mode: CommandQueueModeCommand behavior during the barrier.
state: BarrierStateCurrent barrier state.
Implementations§
Source§impl RuntimeBarrier
impl RuntimeBarrier
Sourcepub const fn requested(
id: BarrierId,
scope: BarrierScope,
requested_at: Tick,
target_tick: Tick,
command_mode: CommandQueueMode,
) -> Self
pub const fn requested( id: BarrierId, scope: BarrierScope, requested_at: Tick, target_tick: Tick, command_mode: CommandQueueMode, ) -> Self
Creates a requested barrier.
Sourcepub fn wait_for_tick_boundary(&mut self)
pub fn wait_for_tick_boundary(&mut self)
Marks this barrier as waiting for the target tick boundary.
Trait Implementations§
Source§impl Clone for RuntimeBarrier
impl Clone for RuntimeBarrier
Source§fn clone(&self) -> RuntimeBarrier
fn clone(&self) -> RuntimeBarrier
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 RuntimeBarrier
Source§impl Debug for RuntimeBarrier
impl Debug for RuntimeBarrier
impl Eq for RuntimeBarrier
Source§impl PartialEq for RuntimeBarrier
impl PartialEq for RuntimeBarrier
impl StructuralPartialEq for RuntimeBarrier
Auto Trait Implementations§
impl Freeze for RuntimeBarrier
impl RefUnwindSafe for RuntimeBarrier
impl Send for RuntimeBarrier
impl Sync for RuntimeBarrier
impl Unpin for RuntimeBarrier
impl UnsafeUnpin for RuntimeBarrier
impl UnwindSafe for RuntimeBarrier
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