Struct git_features::interrupt::ResetOnDrop [−][src]
pub struct ResetOnDrop { /* fields omitted */ }
Useful if some parts of the program set the interrupt programmatically to cause others to stop, while assuring the interrupt state is reset at the end of the function to avoid other side-effects.
Note that this is inherently racy and that this will only work deterministically if there is only one top-level function running in a process.
Trait Implementations
impl Default for ResetOnDrop
[src]
impl Default for ResetOnDrop
[src]Auto Trait Implementations
impl RefUnwindSafe for ResetOnDrop
impl Send for ResetOnDrop
impl Sync for ResetOnDrop
impl Unpin for ResetOnDrop
impl UnwindSafe for ResetOnDrop
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self