Trait CownBase

Source
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 Ts to be used with the same cown.

§Safety

last should actually return the last request for the corresponding cown.

Required Methods§

Source

fn last(&self) -> &AtomicPtr<Request>

Return a pointer to the tail of this cown’s request queue.

Implementors§

Source§

impl<T: Send> CownBase for Cown<T>