Trait Identity

Source
pub trait Identity: Send + Sync {
    // Required method
    fn id(&self) -> &InstanceId;
}
Expand description

Trait used to identify objects (data stored in database, instances of structs using rpc)

Required Methods§

Source

fn id(&self) -> &InstanceId

Implementors§

Source§

impl<T> Identity for ObjectRef<T>
where T: Send + Sync,