pub enum NodeConstraint {
Any,
HasGpu,
HasMemory(u64),
Specific(String),
}Expand description
Placement hint for a pipeline stage.
Specifies which fabric node a stage should execute on. Currently all stages run in-process; remote dispatch is planned as future work.
Variants§
Any
No placement preference — scheduler picks any available node.
HasGpu
Requires a node with GPU resources.
HasMemory(u64)
Requires a node with at least this many bytes of memory.
Specific(String)
Target a specific node by name or address.
Trait Implementations§
Source§impl Clone for NodeConstraint
impl Clone for NodeConstraint
Source§fn clone(&self) -> NodeConstraint
fn clone(&self) -> NodeConstraint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeConstraint
impl Debug for NodeConstraint
Source§impl PartialEq for NodeConstraint
impl PartialEq for NodeConstraint
impl Eq for NodeConstraint
impl StructuralPartialEq for NodeConstraint
Auto Trait Implementations§
impl Freeze for NodeConstraint
impl RefUnwindSafe for NodeConstraint
impl Send for NodeConstraint
impl Sync for NodeConstraint
impl Unpin for NodeConstraint
impl UnwindSafe for NodeConstraint
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