Skip to main content

contain

Function contain 

Source
pub fn contain<T>(work: impl FnOnce() -> T) -> Result<T, Fault>
Expand description

Run work behind the fault boundary: its value, or the Fault that stopped it.