pub struct RegistrationOwner(/* private fields */);Expand description
Authoritative owner of a composition-time service or contribution registration.
Owners are created only by Minco’s composition boundary. Application code can inspect an owner, but neither an application nor a plugin can construct a plugin-owned value and spoof a different plugin’s identity.
ⓘ
use minco_core::{PluginId, RegistrationOwner};
let forged = RegistrationOwner::plugin(PluginId::new("another-plugin")?);Implementations§
Trait Implementations§
Source§impl Clone for RegistrationOwner
impl Clone for RegistrationOwner
Source§fn clone(&self) -> RegistrationOwner
fn clone(&self) -> RegistrationOwner
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 RegistrationOwner
impl Debug for RegistrationOwner
Source§impl Display for RegistrationOwner
impl Display for RegistrationOwner
impl Eq for RegistrationOwner
Source§impl PartialEq for RegistrationOwner
impl PartialEq for RegistrationOwner
Source§impl Serialize for RegistrationOwner
impl Serialize for RegistrationOwner
impl StructuralPartialEq for RegistrationOwner
Auto Trait Implementations§
impl Freeze for RegistrationOwner
impl RefUnwindSafe for RegistrationOwner
impl Send for RegistrationOwner
impl Sync for RegistrationOwner
impl Unpin for RegistrationOwner
impl UnsafeUnpin for RegistrationOwner
impl UnwindSafe for RegistrationOwner
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