Skip to main content

shared

Function shared 

Source
pub fn shared<T: Hash + Eq + Send + Sync + 'static>(value: T) -> Arc<T> ⓘ
Expand description

The process’s shared copy of value (an equal value stored earlier and still alive), or value itself, which later equal values then share. Costs a hash of value and a lock: meant for data stored once per connection, not per packet.