pub struct DistributedBrick<B: Brick> { /* private fields */ }Expand description
Distributed brick wrapper for multi-backend execution
Wraps any Brick to enable distributed execution with:
- Backend selection (CPU/GPU/Remote/SIMD)
- Data dependency tracking for locality
- Work-stealing support
Implementations§
Source§impl<B: Brick> DistributedBrick<B>
impl<B: Brick> DistributedBrick<B>
Sourcepub fn with_backend(self, backend: Backend) -> Self
pub fn with_backend(self, backend: Backend) -> Self
Set the preferred execution backend
Sourcepub fn with_data_dependencies(self, deps: Vec<String>) -> Self
pub fn with_data_dependencies(self, deps: Vec<String>) -> Self
Add data dependencies for locality-aware scheduling
Sourcepub fn with_preferred_worker(self, worker: WorkerId) -> Self
pub fn with_preferred_worker(self, worker: WorkerId) -> Self
Set preferred worker for execution
Sourcepub fn data_dependencies(&self) -> &[String]
pub fn data_dependencies(&self) -> &[String]
Get data dependencies
Sourcepub fn preferred_worker(&self) -> Option<WorkerId>
pub fn preferred_worker(&self) -> Option<WorkerId>
Get preferred worker
Sourcepub fn to_task_spec(&self) -> TaskSpec
pub fn to_task_spec(&self) -> TaskSpec
Convert to a task specification for distributed execution
Trait Implementations§
Source§impl<B: Brick> Brick for DistributedBrick<B>
impl<B: Brick> Brick for DistributedBrick<B>
Source§fn brick_name(&self) -> &'static str
fn brick_name(&self) -> &'static str
Get the brick’s unique type name
Source§fn assertions(&self) -> &[BrickAssertion]
fn assertions(&self) -> &[BrickAssertion]
Get all assertions for this brick
Source§fn budget(&self) -> BrickBudget
fn budget(&self) -> BrickBudget
Get the performance budget
Source§fn verify(&self) -> BrickVerification
fn verify(&self) -> BrickVerification
Verify all assertions against current state Read more
Source§fn can_render(&self) -> bool
fn can_render(&self) -> bool
Check if this brick can be rendered (all assertions pass)
Auto Trait Implementations§
impl<B> Freeze for DistributedBrick<B>where
B: Freeze,
impl<B> RefUnwindSafe for DistributedBrick<B>where
B: RefUnwindSafe,
impl<B> Send for DistributedBrick<B>
impl<B> Sync for DistributedBrick<B>
impl<B> Unpin for DistributedBrick<B>where
B: Unpin,
impl<B> UnsafeUnpin for DistributedBrick<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for DistributedBrick<B>where
B: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more