AccessKind

Trait AccessKind 

Source
pub trait AccessKind {
    // Provided methods
    fn writer(_type_id: TypeId) -> bool { ... }
    fn reader(_type_id: TypeId) -> bool { ... }
    fn exclusive_reader(_type_id: TypeId) -> bool { ... }
}
Expand description

Internal helper to query how a StoreRequest type will use a specific type.

Provided Methods§

Source

fn writer(_type_id: TypeId) -> bool

Returns whether this is a writer.

Source

fn reader(_type_id: TypeId) -> bool

Returns whether this is a reader (both exclusive and non-exclusive).

Source

fn exclusive_reader(_type_id: TypeId) -> bool

Returns whether this is an exclusive reader.

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.

Implementors§

Source§

impl<T> AccessKind for ExclusiveReader<'_, T>
where T: Storable + 'static,

Source§

impl<T> AccessKind for InitializedReader<'_, T>
where T: Storable + 'static,

Source§

impl<T> AccessKind for Reader<'_, T>
where T: Storable + 'static,

Source§

impl<T> AccessKind for Writer<'_, T>
where T: Storable + 'static,