Expand description
Safe wrappers for FBMU (Fabric Bootstrap Memory Unit) host functions.
This module provides byte-addressable fabric memory access through the
FBMU data-plane protocol. The primary type is FabricMem, which wraps
the raw host function calls with a safe Rust API.
§Usage
use grafos_std::mem::FabricMem;
let mem = FabricMem::hello()?;
mem.write(0, b"hello fabric")?;
let data = mem.read(0, 12)?;
assert_eq!(&data, b"hello fabric");For capacity-checked allocation, use MemBuilder:
use grafos_std::mem::MemBuilder;
let lease = MemBuilder::new().min_bytes(4096).acquire()?;
lease.mem().write(0, &[42; 100])?;Structs§
- Fabric
Mem - Safe handle to fabric memory via FBMU host functions.
- MemBuilder
- Builder for acquiring a fabric memory lease with capacity constraints.
- MemLease
- A memory lease that auto-frees on drop.