pub trait Strategy<T: RefCnt>: InnerStrategy<T> { }
Expand description

A strategy for protecting the reference counted pointer T.

This chooses the algorithm for how the reference counts are protected. Note that the user of the crate can’t implement the trait and can’t access any method; this is hopefully temporary measure to make sure the interface is not part of the stability guarantees of the crate. Once enough experience is gained with implementing various strategies, it will be un-sealed and users will be able to provide their own implementation.

For now, the trait works only as a bound to talk about the types that represent strategies.

Implementors