Struct re_log::setup::PanicOnWarnScope
source · pub struct PanicOnWarnScope {
not_send_sync: PhantomData<Cell<()>>,
}
Expand description
Scope for enabling panic on warn/error log messages temporariliy on the current thread (!).
Use this in tests to ensure that there’s no errors & warnings. Note that we can’t enable this for all threads since threads run in parallel and may not want to set this.
Fields§
§not_send_sync: PhantomData<Cell<()>>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PanicOnWarnScope
impl !RefUnwindSafe for PanicOnWarnScope
impl Send for PanicOnWarnScope
impl !Sync for PanicOnWarnScope
impl Unpin for PanicOnWarnScope
impl UnwindSafe for PanicOnWarnScope
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