Module fabric

Module fabric 

Source
Expand description

Discovery and allocation entry point for fabric resources.

The Fabric struct is the top-level entry point for programs that need to discover available nodes and allocate resources across the fabric. It provides builder methods for all resource types (memory, block, GPU, CPU).

§Example

use grafos_std::fabric::Fabric;
use grafos_std::mem::MemBuilder;

let fabric = Fabric::connect("10.10.0.11:5701")?;

// Discover nodes (returns empty list until host discovery API is added)
let nodes = fabric.nodes();

// Allocate memory via the fabric entry point
let lease = fabric.alloc_mem().min_bytes(4096).acquire()?;
lease.mem().write(0, b"hello")?;

Structs§

Fabric
Entry point for discovering and allocating fabric resources.
NodeInfo
Information about a discovered fabric node.