kernel::list

Trait TryNewListArc

Source
pub unsafe trait TryNewListArc<const ID: u64 = 0>: ListArcSafe<ID> {
    // Required method
    fn try_new_list_arc(&self) -> bool;
}
Expand description

Declares that this type is able to safely attempt to create ListArcs at any time.

§Safety

The guarantees of try_new_list_arc must be upheld.

Required Methods§

Source

fn try_new_list_arc(&self) -> bool

Attempts to convert an Arc<Self> into an ListArc<Self>. Returns true if the conversion was successful.

This method should not be called directly. Use ListArc::try_from_arc instead.

§Guarantees

If this call returns true, then there is no ListArc pointing to this value. Additionally, this call will have transitioned the tracking inside Self from not thinking that a ListArc exists, to thinking that a ListArc exists.

Implementors§

Source§

impl<const ID: u64> TryNewListArc<ID> for AtomicTracker<ID>