pub struct GpuLease { /* private fields */ }Expand description
A GPU lease that auto-frees on drop.
Anchors session-based GPU work: a GpuSession built from this
lease drives persistent device memory, module loads, launches, and
synchronisation via the fabricbios_gpu_v1 ABI. Created via
GpuBuilder::acquire.
Implementations§
Source§impl GpuLease
impl GpuLease
Sourcepub fn info(&self) -> LeaseInfo
pub fn info(&self) -> LeaseInfo
Lease metadata snapshot (id, creation time, expiry, and status).
Sourcepub fn created_at_unix_secs(&self) -> u64
pub fn created_at_unix_secs(&self) -> u64
Lease creation timestamp (unix seconds).
Sourcepub fn expires_at_unix_secs(&self) -> u64
pub fn expires_at_unix_secs(&self) -> u64
Lease expiry timestamp (unix seconds).
Sourcepub fn status(&self) -> LeaseStatus
pub fn status(&self) -> LeaseStatus
Current lease status.
Queries the host for the authoritative lease status, falling back to local tracking on error.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GpuLease
impl !RefUnwindSafe for GpuLease
impl !Send for GpuLease
impl !Sync for GpuLease
impl Unpin for GpuLease
impl !UnwindSafe for GpuLease
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