pub struct MultiFuse<T: Clone> { /* private fields */ }
Expand description
A reusable fuse. It just grows back.
This MultiFuse
can be lit multiple times, and will explode all
MultiBomb<T>
instances associated with it.
It is not necessary, but may be useful for your application, to wait for
all of the MultiBomb
s to extinguish before lighting the MultiFuse
again.
Slow MultiBomb
s may be in an exploded state again immediately after
they have finished processing data, if the MultiFuse
was lit again in between processing.
Like one-time use Fuse
s, MultiFuse
s cannot be cloned, but may be moved between threads.
§Dropping
Currently, MultiBomb
s do not have internal logic to detect MultiFuse
drops.
If the MultiFuse
is dropped without any additional logic, all active MultiBomb
s will wait
indefinitely to explode.
Implementations§
Auto Trait Implementations§
impl<T> Freeze for MultiFuse<T>
impl<T> !RefUnwindSafe for MultiFuse<T>
impl<T> Send for MultiFuse<T>
impl<T> Sync for MultiFuse<T>
impl<T> Unpin for MultiFuse<T>
impl<T> !UnwindSafe for MultiFuse<T>
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