Skip to main content

MemoryProbe

Trait MemoryProbe 

Source
pub trait MemoryProbe:
    Send
    + Sync
    + Debug {
    // Required method
    fn available_bytes(&self) -> u64;
}
Expand description

Reports the memory currently available to the process.

Required Methods§

Source

fn available_bytes(&self) -> u64

Returns available bytes.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§