pub struct DeviceLease {
pub id: DeviceLeaseId,
pub class: DeviceClass,
pub mmio_base: u64,
pub mmio_size: u64,
pub expiry_ns: u64,
pub epoch: u32,
}Expand description
A time-bounded, revocable device lease.
Fields§
§id: DeviceLeaseIdUnique lease identifier.
class: DeviceClassDevice class.
mmio_base: u64MMIO base address.
mmio_size: u64MMIO region size in bytes.
expiry_ns: u64Lease expiry timestamp (nanoseconds, 0 = no expiry).
epoch: u32Epoch when the lease was granted.
Trait Implementations§
Source§impl Clone for DeviceLease
impl Clone for DeviceLease
Source§fn clone(&self) -> DeviceLease
fn clone(&self) -> DeviceLease
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 DeviceLease
Auto Trait Implementations§
impl Freeze for DeviceLease
impl RefUnwindSafe for DeviceLease
impl Send for DeviceLease
impl Sync for DeviceLease
impl Unpin for DeviceLease
impl UnsafeUnpin for DeviceLease
impl UnwindSafe for DeviceLease
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