Skip to main content

ref_counted

Attribute Macro ref_counted 

Source
#[ref_counted]
Expand description

Attribute macro to make a struct reference counted.

Adds a ref_count: fbl::RefCounted field and a _guard: RefCountedGuard as the first and second fields. Implements fbl::HasRefCount and fbl::Recyclable for the struct.