Skip to main content

scoped

Function scoped 

Source
pub fn scoped<T>(
    device: &Device,
    operation: impl FnOnce() -> T,
) -> (T, Option<Error>)
Expand description

Runs operation inside this thread’s own error scopes and returns the first error it raised, instead of recording it on a client.