pub struct VfsNodeTable {
pub name: &'static str,
pub nodes_fn: VfsNodesFn,
}Expand description
Inventory-registered generated VFS node table (#699 carrier (a) inventory).
Submitted by generate_rpc_service! for every schema that has request
variants (i.e. every service that projects a /srv/{name} mount with
generated nodes). The genesis coverage gate collects the union of these
tables via [inventory::iter::<VfsNodeTable>()] so the startup gate covers
every reachable generated object class — not just the ones a hand-built
fixture happened to include.
The nodes_fn indirection keeps the table lazy (zero-cost until the gate
walks it) and lets this crate stay free of a hyprstream-service
dependency: the macro emits the inventory::submit! in whatever crate owns
the generated client module, and the gate (in the daemon crate) iterates it.
On wasm32 (#1305) the link-time registration is compiled out (inventory’s
linker-section mechanism doesn’t resolve there); the generated
vfs_nodes() fn is the wasm-compatible path and stays directly callable.
Fields§
§name: &'static strThe /srv/{name} service this table belongs to.
nodes_fn: VfsNodesFnfn() -> (service_name, &[VfsNode]) — the generated vfs_nodes().
Trait Implementations§
impl Collect for VfsNodeTable
Auto Trait Implementations§
impl Freeze for VfsNodeTable
impl RefUnwindSafe for VfsNodeTable
impl Send for VfsNodeTable
impl Sync for VfsNodeTable
impl Unpin for VfsNodeTable
impl UnsafeUnpin for VfsNodeTable
impl UnwindSafe for VfsNodeTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more