pub struct SecondarySlotStatus {
pub state: &'static str,
pub detail: String,
}Expand description
Why the second VRAM slot is or is not in use.
Fields§
§state: &'static strStable machine-readable label, for styling. One of resident,
available, too_large, no_headroom, unknown_footprint,
unknown_budget.
detail: StringReady-to-render explanation. Phrased for display rather than parsing —
consumers branch on Self::state.
Implementations§
Source§impl SecondarySlotStatus
impl SecondarySlotStatus
Sourcepub fn resident(model_name: &str) -> Self
pub fn resident(model_name: &str) -> Self
The status for a slot that currently holds model_name.
Sourcepub fn from_decision(decision: SecondarySlotDecision) -> Self
pub fn from_decision(decision: SecondarySlotDecision) -> Self
Render the most recent refusal as a status.
A SecondarySlotDecision::Grant reaching here means the co-load was
attempted but has not completed (or failed at spawn); it reports as
available rather than resident, since nothing is loaded.
Trait Implementations§
Source§impl Clone for SecondarySlotStatus
impl Clone for SecondarySlotStatus
Source§fn clone(&self) -> SecondarySlotStatus
fn clone(&self) -> SecondarySlotStatus
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 moreSource§impl Debug for SecondarySlotStatus
impl Debug for SecondarySlotStatus
Source§impl Default for SecondarySlotStatus
impl Default for SecondarySlotStatus
Source§impl PartialEq for SecondarySlotStatus
impl PartialEq for SecondarySlotStatus
Source§fn eq(&self, other: &SecondarySlotStatus) -> bool
fn eq(&self, other: &SecondarySlotStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SecondarySlotStatus
impl Serialize for SecondarySlotStatus
impl Eq for SecondarySlotStatus
impl StructuralPartialEq for SecondarySlotStatus
Auto Trait Implementations§
impl Freeze for SecondarySlotStatus
impl RefUnwindSafe for SecondarySlotStatus
impl Send for SecondarySlotStatus
impl Sync for SecondarySlotStatus
impl Unpin for SecondarySlotStatus
impl UnsafeUnpin for SecondarySlotStatus
impl UnwindSafe for SecondarySlotStatus
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