pub struct FaultLatch { /* private fields */ }Expand description
A one-shot, first-writer-wins fault flag.
Constructible in a test so the global is never a shared fixture — a latch is by design irreversible, which would make one global instance a cross-test dependency.
Implementations§
Source§impl FaultLatch
impl FaultLatch
Trait Implementations§
Source§impl Debug for FaultLatch
impl Debug for FaultLatch
Source§impl Default for FaultLatch
impl Default for FaultLatch
Source§fn default() -> FaultLatch
fn default() -> FaultLatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for FaultLatch
impl RefUnwindSafe for FaultLatch
impl Send for FaultLatch
impl Sync for FaultLatch
impl Unpin for FaultLatch
impl UnwindSafe for FaultLatch
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