Function with_new_default_stream

Source
pub fn with_new_default_stream<F, T>(default_stream: Stream, f: F) -> T
where F: FnOnce() -> T,
Expand description

Use a given default stream for the duration of the closure f.