Module xtra::refcount

source ·
Expand description

This module contains types representing the strength of an address’s reference counting, which influences whether the address will keep the actor alive for as long as it lives.

Structs

The reference count of a strong address. Strong addresses will prevent the actor from being dropped as long as they live. Read the docs of Address to find out more.
The reference count of a weak address. Weak addresses will bit prevent the actor from being dropped. Read the docs of Address to find out more.

Enums

A reference counter that can be dynamically either strong or weak.

Traits

This trait represents the strength of an address’s reference counting. It is an internal trait. There are two implementations of this trait: Weak and Strong. These can be provided as the second type argument to Address in order to change how the address affects the actor’s dropping. Read the docs of Address to find out more.