Skip to main content

require_9p_socket_capability

Function require_9p_socket_capability 

Source
pub fn require_9p_socket_capability(backend_type: &str) -> Result<()>
Expand description

Fail-closed guard used at the workload seam: error unless backend_type advertises 9P socket injection (#506).

A caller that already holds a constructed backend (e.g. from the pool) uses this to refuse — cleanly, before spawning any 9P server or building any injection annotations — to place a socket-injecting workload on a backend that cannot receive the socket. It never downgrades; it only reports.