Skip to main content

SwapFn

Type Alias SwapFn 

Source
pub type SwapFn = Arc<dyn Fn(&Path) -> Result<()> + Send + Sync + 'static>;
Expand description

Swap function — lets tests substitute a double for self_replace::self_replace. Returns Ok iff the running binary has been replaced.

Aliased Type§

pub struct SwapFn { /* private fields */ }