pub struct LayerAssignment {
pub node_id: String,
pub start_layer: usize,
pub end_layer: usize,
pub used_vram_gb: f32,
pub num_layers: usize,
}Expand description
Layer assignment to a specific node
Fields§
§node_id: StringNode ID
start_layer: usizeStart layer index (inclusive)
end_layer: usizeEnd layer index (exclusive)
used_vram_gb: f32VRAM used on this node
num_layers: usizeNumber of layers assigned
Implementations§
Trait Implementations§
Source§impl Clone for LayerAssignment
impl Clone for LayerAssignment
Source§impl Debug for LayerAssignment
impl Debug for LayerAssignment
Source§impl PartialEq for LayerAssignment
impl PartialEq for LayerAssignment
impl StructuralPartialEq for LayerAssignment
Auto Trait Implementations§
impl Freeze for LayerAssignment
impl RefUnwindSafe for LayerAssignment
impl Send for LayerAssignment
impl Sync for LayerAssignment
impl Unpin for LayerAssignment
impl UnsafeUnpin for LayerAssignment
impl UnwindSafe for LayerAssignment
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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