pub struct ActionFuse { /* private fields */ }
Expand description
ActionFuse is a wrapper around a triggered action (a closure with no arguments and no return value). This action is invoked once the fuse goes out of scope (via the Drop trait). An ActionFuse can be defused, preventing the action from automatically invoking when going out of scope.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ActionFuse
impl !RefUnwindSafe for ActionFuse
impl !Send for ActionFuse
impl !Sync for ActionFuse
impl Unpin for ActionFuse
impl !UnwindSafe for ActionFuse
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