pub trait UnlockedAccessMarkerFor<T> {
type Data: 'static;
// Required method
fn unlocked_access(t: &T) -> &Self::Data;
}Expand description
Declares a type that is an UnlockedAccess marker for some field Data
within T.
This is the equivalent of LockLevelFor for UnlockedAccess, but given
unlocked access is freely available through borrows the foreign type can
safely expose a getter.
Required Associated Types§
Required Methods§
Sourcefn unlocked_access(t: &T) -> &Self::Data
fn unlocked_access(t: &T) -> &Self::Data
Retrieves Self::Data from T.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.