Skip to main content

error_from_rpc

Function error_from_rpc 

Source
pub fn error_from_rpc(e: RpcError, index: impl Into<Option<usize>>) -> VfError
Expand description

Convert an RPC error using an explicitly chosen logical request index. None keeps the failure unattributed; it never invents index zero. Transport errors retain their transport category rather than becoming a filesystem status. The RPC’s wire-operation index is not used here.