pub struct AmbientScope { /* private fields */ }Expand description
No-op per-test ambient gate off the sim path (time is already real). The
#[kithara::test] macro emits ambient_scope(..) into sync and wasm test
bodies (async-native bodies carry with_ambient per-poll instead), so the
guard must exist (as a ZST) in the off-feature + wasm configs. Under
flash this is the engine’s AmbientScope / ambient_scope. !Send for
auto-trait parity with the engine guard (see FlashScope).
Trait Implementations§
Auto Trait Implementations§
impl !Send for AmbientScope
impl !Sync for AmbientScope
impl Freeze for AmbientScope
impl RefUnwindSafe for AmbientScope
impl Unpin for AmbientScope
impl UnsafeUnpin for AmbientScope
impl UnwindSafe for AmbientScope
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more