Skip to main content

ResourceKey

Trait ResourceKey 

Source
pub trait ResourceKey:
    Eq
    + Hash
    + Clone
    + Send
    + Sync
    + Debug { }
Expand description

A resource identifier for a latched terminal value (e.g. a task id, a model load-attempt id). Cheap to clone/hash/compare.

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: Eq + Hash + Clone + Send + Sync + Debug> ResourceKey for T