pub struct ResourceOwnerId { /* private fields */ }Expand description
Unique owner identity pairing ownership domain, owner identifier, and monotonic generation.
Implementations§
Source§impl ResourceOwnerId
impl ResourceOwnerId
pub fn get_kind(&self) -> ResourceOwnerKind
pub fn get_mut_kind(&mut self) -> &mut ResourceOwnerKind
pub fn set_kind(&mut self, val: ResourceOwnerKind) -> &mut Self
pub fn get_owner_id(&self) -> u64
pub fn get_mut_owner_id(&mut self) -> &mut u64
pub fn set_owner_id(&mut self, val: u64) -> &mut Self
pub fn get_generation(&self) -> u64
pub fn get_mut_generation(&mut self) -> &mut u64
pub fn set_generation(&mut self, val: u64) -> &mut Self
Source§impl ResourceOwnerId
impl ResourceOwnerId
pub fn new(kind: ResourceOwnerKind, owner_id: u64, generation: u64) -> Self
Trait Implementations§
Source§impl Clone for ResourceOwnerId
impl Clone for ResourceOwnerId
impl Copy for ResourceOwnerId
Source§impl Debug for ResourceOwnerId
impl Debug for ResourceOwnerId
Source§impl Default for ResourceOwnerId
impl Default for ResourceOwnerId
impl Eq for ResourceOwnerId
Source§impl Hash for ResourceOwnerId
impl Hash for ResourceOwnerId
Source§impl Ord for ResourceOwnerId
impl Ord for ResourceOwnerId
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ResourceOwnerId
impl PartialEq for ResourceOwnerId
Source§impl PartialOrd for ResourceOwnerId
impl PartialOrd for ResourceOwnerId
impl StructuralPartialEq for ResourceOwnerId
Auto Trait Implementations§
impl Forget for ResourceOwnerId
impl Freeze for ResourceOwnerId
impl Move for ResourceOwnerId
impl RefUnwindSafe for ResourceOwnerId
impl Send for ResourceOwnerId
impl Sync for ResourceOwnerId
impl Unpin for ResourceOwnerId
impl UnsafeUnpin for ResourceOwnerId
impl UnwindSafe for ResourceOwnerId
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