pub struct ResourceLeaseEntry { /* private fields */ }Implementations§
Source§impl ResourceLeaseEntry
impl ResourceLeaseEntry
pub fn owner_node_id(&self) -> Option<&NodeId>
pub fn resource_id(&self) -> &ResourceId
pub const fn size_bytes(&self) -> u64
pub const fn alignment_bytes(&self) -> u64
pub const fn usage(&self) -> BufferUsage
pub const fn element_type(&self) -> ElementType
pub const fn retention_policy(&self) -> ResourceRetentionPolicy
pub const fn generation(&self) -> u64
pub const fn state(&self) -> ResourceLeaseState
Trait Implementations§
Source§impl Clone for ResourceLeaseEntry
impl Clone for ResourceLeaseEntry
Source§fn clone(&self) -> ResourceLeaseEntry
fn clone(&self) -> ResourceLeaseEntry
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 moreSource§impl Debug for ResourceLeaseEntry
impl Debug for ResourceLeaseEntry
impl Eq for ResourceLeaseEntry
Source§impl From<&ResourceLeaseEntry> for UnvalidatedResourceLeaseEntry
impl From<&ResourceLeaseEntry> for UnvalidatedResourceLeaseEntry
Source§fn from(entry: &ResourceLeaseEntry) -> Self
fn from(entry: &ResourceLeaseEntry) -> Self
Converts to this type from the input type.
Source§impl Ord for ResourceLeaseEntry
impl Ord for ResourceLeaseEntry
Source§fn cmp(&self, other: &ResourceLeaseEntry) -> Ordering
fn cmp(&self, other: &ResourceLeaseEntry) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ResourceLeaseEntry
impl PartialEq for ResourceLeaseEntry
Source§impl PartialOrd for ResourceLeaseEntry
impl PartialOrd for ResourceLeaseEntry
Source§impl Serialize for ResourceLeaseEntry
impl Serialize for ResourceLeaseEntry
impl StructuralPartialEq for ResourceLeaseEntry
Auto Trait Implementations§
impl Freeze for ResourceLeaseEntry
impl RefUnwindSafe for ResourceLeaseEntry
impl Send for ResourceLeaseEntry
impl Sync for ResourceLeaseEntry
impl Unpin for ResourceLeaseEntry
impl UnsafeUnpin for ResourceLeaseEntry
impl UnwindSafe for ResourceLeaseEntry
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