pub struct ManagedRegistryOwner(/* private fields */);Expand description
业务作用:标识唯一 Application 对 catalog 与 typed registry 的共同所有权。
Implementations§
Source§impl ManagedRegistryOwner
impl ManagedRegistryOwner
Sourcepub fn new() -> Self
pub fn new() -> Self
业务作用:为一次 Application 数据库启动创建不可伪造的进程内所有权身份。
参数说明: 无。
返回:可安全 clone、按 Arc 身份复验的 owner。
Sourcepub fn ptr_eq(&self, other: &Self) -> bool
pub fn ptr_eq(&self, other: &Self) -> bool
业务作用:比较两个 owner 是否代表同一次 Application 启动。
参数说明:
other:是待复验的 owner。
返回:底层身份相同时返回真。
Sourcepub fn diagnostic_id(&self) -> u64
pub fn diagnostic_id(&self) -> u64
业务作用:返回不包含资源信息的进程内诊断编号。
参数说明: 无。
返回:本进程单调分配的 owner 编号,不作为跨进程协议值。
Trait Implementations§
Source§impl Clone for ManagedRegistryOwner
impl Clone for ManagedRegistryOwner
Source§impl Debug for ManagedRegistryOwner
impl Debug for ManagedRegistryOwner
Auto Trait Implementations§
impl Forget for ManagedRegistryOwner
impl Freeze for ManagedRegistryOwner
impl Move for ManagedRegistryOwner
impl RefUnwindSafe for ManagedRegistryOwner
impl Send for ManagedRegistryOwner
impl Sync for ManagedRegistryOwner
impl Unpin for ManagedRegistryOwner
impl UnsafeUnpin for ManagedRegistryOwner
impl UnwindSafe for ManagedRegistryOwner
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