pub struct RuleGuard { /* private fields */ }Expand description
RAII handle for a rule installed via rule or
EnterGuard::rule.
Drop uninstalls the rule; RuleGuard::forget leaks it instead,
leaving the rule installed for the rest of the simulation.
The guard is !Send: it’s tied to the thread that owns the Net,
and the thread-local uninstall on drop would be unsound across
threads.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuleGuard
impl RefUnwindSafe for RuleGuard
impl !Send for RuleGuard
impl !Sync for RuleGuard
impl Unpin for RuleGuard
impl UnsafeUnpin for RuleGuard
impl UnwindSafe for RuleGuard
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