pub struct LeaseTimelineEntry {
pub lease_id: u128,
pub resource_type: Option<ResourceType>,
pub acquired_at: u64,
pub released_at: u64,
pub capacity_approx: u64,
pub peak_usage: u64,
pub total_ops: u64,
pub total_acquire_wait_us: u64,
pub lease_cost_byte_secs: u64,
}Expand description
A single lease’s lifecycle entry for the timeline.
Fields§
§lease_id: u128Lease ID.
resource_type: Option<ResourceType>Dominant resource type (inferred from operations).
acquired_at: u64First time this lease was observed (Unix microseconds).
released_at: u64Last time this lease was observed (Unix microseconds).
capacity_approx: u64Total bytes associated with this lease (from lease_cost / duration approximation).
peak_usage: u64Peak bytes used (max of bytes_read + bytes_written across spans).
total_ops: u64Total operations on this lease.
total_acquire_wait_us: u64Total acquire wait time across all spans touching this lease.
lease_cost_byte_secs: u64Lease cost in byte-seconds.
Implementations§
Source§impl LeaseTimelineEntry
impl LeaseTimelineEntry
Sourcepub fn utilization_pct(&self) -> f64
pub fn utilization_pct(&self) -> f64
Utilization percentage: peak_usage / capacity_approx.
Sourcepub fn duration_us(&self) -> u64
pub fn duration_us(&self) -> u64
Duration in microseconds.
Trait Implementations§
Source§impl Clone for LeaseTimelineEntry
impl Clone for LeaseTimelineEntry
Source§fn clone(&self) -> LeaseTimelineEntry
fn clone(&self) -> LeaseTimelineEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 LeaseTimelineEntry
impl RefUnwindSafe for LeaseTimelineEntry
impl Send for LeaseTimelineEntry
impl Sync for LeaseTimelineEntry
impl Unpin for LeaseTimelineEntry
impl UnwindSafe for LeaseTimelineEntry
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