pub struct GpuLeaseEntry {
pub vendor: GpuVendor,
pub name: String,
pub index: u32,
pub leased: bool,
}Expand description
Snapshot of one GPU slot’s lease state at a moment in time.
Returned by GpuPool::snapshot_leases for Phase 2 worker_load
reporting. Field shape matches queue::WsGpuLeaseEntry so the
caller can map across without a wire-format-aware translation.
Fields§
§vendor: GpuVendor§name: String§index: u32§leased: boolTrait Implementations§
Source§impl Clone for GpuLeaseEntry
impl Clone for GpuLeaseEntry
Source§fn clone(&self) -> GpuLeaseEntry
fn clone(&self) -> GpuLeaseEntry
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 moreAuto Trait Implementations§
impl Freeze for GpuLeaseEntry
impl RefUnwindSafe for GpuLeaseEntry
impl Send for GpuLeaseEntry
impl Sync for GpuLeaseEntry
impl Unpin for GpuLeaseEntry
impl UnsafeUnpin for GpuLeaseEntry
impl UnwindSafe for GpuLeaseEntry
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