Skip to main content

RuntimeMemoryTarget

Trait RuntimeMemoryTarget 

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

Cooperative target for revocable operator state in an already admitted task. This is a hint to spill at safe points, never a replacement for hard budgets or permission to revoke an allocation, result, or runtime reservation.

Required Methods§

Source

fn target_bytes(&self, hard_limit: u64) -> u64

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§