Enum SpacedeckPrefer
#[non_exhaustive]pub enum SpacedeckPrefer {
MostDisk,
LeastLoaded,
Coolest,
FewestJobs,
}Expand description
Which of equally free hosts a SpacedeckPick takes: spacedeck’s
run --prefer.
It only breaks a tie. Among the hosts a pick admits, spacedeck first keeps those with the fewest free slots; the preference chooses among them, and the host name breaks any tie left.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MostDisk
The host with the most available disk space.
LeastLoaded
The host with the lowest one-minute load average.
Coolest
The host whose hottest GPU is coolest; LeastLoaded
where no GPU reports a temperature.
FewestJobs
The host running the fewest jobs, by leased slots.
Trait Implementations§
§impl Clone for SpacedeckPrefer
impl Clone for SpacedeckPrefer
§fn clone(&self) -> SpacedeckPrefer
fn clone(&self) -> SpacedeckPrefer
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 SpacedeckPrefer
§impl Debug for SpacedeckPrefer
impl Debug for SpacedeckPrefer
impl Eq for SpacedeckPrefer
§impl PartialEq for SpacedeckPrefer
impl PartialEq for SpacedeckPrefer
impl StructuralPartialEq for SpacedeckPrefer
Auto Trait Implementations§
impl Freeze for SpacedeckPrefer
impl RefUnwindSafe for SpacedeckPrefer
impl Send for SpacedeckPrefer
impl Sync for SpacedeckPrefer
impl Unpin for SpacedeckPrefer
impl UnsafeUnpin for SpacedeckPrefer
impl UnwindSafe for SpacedeckPrefer
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