unsafe trait CownBase: Send {
// Required method
fn last(&self) -> &AtomicPtr<Request>;
}
Expand description
A trait representing a Cown
.
Instead of directly using a Cown<T>
, which fixes a single T
we use a trait object to allow
multiple requests with different T
s to be used with the same cown.
§Safety
last
should actually return the last request for the corresponding cown.