pub struct FrameBarrierBuilder { /* private fields */ }Expand description
Builder for creating frame barriers with specific thread configurations.
Implementations§
Source§impl FrameBarrierBuilder
impl FrameBarrierBuilder
Sourcepub fn with_thread(self, name: &str) -> Self
pub fn with_thread(self, name: &str) -> Self
Add a thread to the barrier.
Sourcepub fn with_count(self, count: usize) -> Self
pub fn with_count(self, count: usize) -> Self
Set the total thread count.
Sourcepub fn build(self) -> Arc<FrameBarrier>
pub fn build(self) -> Arc<FrameBarrier>
Build the frame barrier.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrameBarrierBuilder
impl RefUnwindSafe for FrameBarrierBuilder
impl Send for FrameBarrierBuilder
impl Sync for FrameBarrierBuilder
impl Unpin for FrameBarrierBuilder
impl UnwindSafe for FrameBarrierBuilder
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