Skip to main content

try_kernel

Function try_kernel 

Source
pub fn try_kernel<T, E: Error>(
    f: impl FnOnce() -> Result<T, E>,
) -> KernelResult<T>
Expand description

Wrap a closure into a KernelResult.