silicon-heaven / libshvclient-rs

A Rust framework for Silicon Heaven RPC devices
MIT License
0 stars 3 forks source link

Dynamic mounts #5

Closed j4r0u53k closed 6 months ago

j4r0u53k commented 6 months ago

Sometimes a client app needs to mount its nodes after the initialization.

We can have two types of dynamic mounts:

  1. Nodes that are mounted once at some point and then their structure persist during the application run
  2. Nodes that implement interface to some dynamic data, so the subtree structure may differ with each access

The methods description has to be provided for each path. Handlers will provide its own dir and ls implementations. Provide two variants of the mount method, or parametrize with an enum.

Consider allowance of 'nested' mounts on nodes that already have (or can have) its own properties (#2) .

j4r0u53k commented 6 months ago