[][src]Trait rosy::gc::GcInfoKey

pub trait GcInfoKey: Sized {
    fn stat_gc(self) -> Result<usize>;
unsafe fn stat_gc_unchecked(self) -> usize;
fn latest_gc_info(self) -> Result<AnyObject>;
unsafe fn latest_gc_info_unchecked(self) -> AnyObject; }

A key that can be used to look up what the latest information is about the garbage collector.

Required methods

fn stat_gc(self) -> Result<usize>

Returns the status information for self with respect to the garbage collector, or an exception if one is raised.

unsafe fn stat_gc_unchecked(self) -> usize

Returns the status information for self with respect to the garbage collector.

Safety

If the key is not available, an exception is thrown that should be caught and handled correctly.

fn latest_gc_info(self) -> Result<AnyObject>

Returns the latest information regarding self with respect to the garbage collector.

If an exception is raised, it is returned as a Result::Err.

unsafe fn latest_gc_info_unchecked(self) -> AnyObject

Returns the latest information regarding self with respect to the garbage collector.

Safety

If the key is not available, an exception is thrown that should be caught and handled correctly.

Loading content...

Implementations on Foreign Types

impl<'_> GcInfoKey for &'_ str[src]

Loading content...

Implementors

impl GcInfoKey for Hash[src]

impl GcInfoKey for String[src]

impl GcInfoKey for Symbol[src]

Loading content...