pub struct ExecuteOnDrop<'a> { /* private fields */ }
Expand description
We use/abuse the mirror to perform our import, but need to clean it up afterwards. This is an RAII helper to do so.
Ideally, you should call execute_now
rather than letting this drop
automatically, as we can’t report errors beyond logging when running
Drop.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ExecuteOnDrop<'a>
impl<'a> !RefUnwindSafe for ExecuteOnDrop<'a>
impl<'a> !Send for ExecuteOnDrop<'a>
impl<'a> !Sync for ExecuteOnDrop<'a>
impl<'a> Unpin for ExecuteOnDrop<'a>
impl<'a> !UnwindSafe for ExecuteOnDrop<'a>
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