pub struct Key<A>where
A: HasData,{ /* private fields */ }Expand description
An IoTargetKey with the access its holder declares for the target under it, as the type A.
The declaration is checked against the target’s stated access when the target is registered
under this key, and not afterwards.
Implementations§
Trait Implementations§
impl<A> Copy for Key<A>where
A: HasData,
impl<A> Eq for Key<A>where
A: HasData,
Source§impl<A> From<Key<A>> for IoTargetKeywhere
A: HasData,
impl<A> From<Key<A>> for IoTargetKeywhere
A: HasData,
Source§fn from(key: Key<A>) -> IoTargetKey
fn from(key: Key<A>) -> IoTargetKey
Converts to this type from the input type.
impl<A> ReadKey for Key<A>where
A: CanRead,
Source§impl<A> TargetKey for Key<A>where
A: HasData,
impl<A> TargetKey for Key<A>where
A: HasData,
Source§fn untyped(&self) -> IoTargetKey
fn untyped(&self) -> IoTargetKey
The number the ring addresses the target by.
Source§fn declared(&self) -> Option<Access>
fn declared(&self) -> Option<Access>
The access this key declares for its target, or
None for an untyped key.Source§fn admitted_by(&self, actual: Access) -> Result<(), AddTargetCause>
fn admitted_by(&self, actual: Access) -> Result<(), AddTargetCause>
Whether a target that states
actual may be registered under this key: a declaration the
target covers, or none. What it refuses is the cause to report. Read moreimpl<A> WriteKey for Key<A>where
A: CanWrite,
Auto Trait Implementations§
impl<A> Freeze for Key<A>
impl<A> RefUnwindSafe for Key<A>
impl<A> Send for Key<A>
impl<A> Sync for Key<A>
impl<A> Unpin for Key<A>
impl<A> UnsafeUnpin for Key<A>
impl<A> UnwindSafe for Key<A>
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