Enum boehm_gc::FinalizerMode [] [src]

pub enum FinalizerMode {
    Standard,
    IgnoreSelf,
    NoOrder,
}

Used as an argument to register_finalizer to influence the circumstances upon which the garbage collector will run finalizers.

Variants

Performs the default behavior of the Boehm GC, which will not run a finalizer on an object that contains a pointer to itself.

Performs the default behavior of the Boehm GC, but ignores any "self pointers". This mode will run finalizers on objects that contain pointers to themselves.

Performs the default behavior of the Boehm GC, but ignores all cycles when calculating which finalizers to run. This is a strict superset of the capabilities that IgnoreSelf provides.

Trait Implementations

impl Clone for FinalizerMode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for FinalizerMode
[src]

impl Debug for FinalizerMode
[src]

Formats the value using the given formatter.