Skip to main content

map_err

Function map_err 

Source
pub fn map_err(e: Error) -> MountError
Expand description

Classify an anyhow::Error (as surfaced by the generated RPC clients) into a MountError by string-matching the common 9P / filesystem error phrases. Identical for every backing service. Free-standing so callers don’t need to name the bridge’s fid-state type parameter.