Struct bombs::MultiFuse

source ·
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 MultiBombs to extinguish before lighting the MultiFuse again. Slow MultiBombs 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 Fuses, MultiFuses cannot be cloned, but may be moved between threads.

Dropping

Currently, MultiBombs do not have internal logic to detect MultiFuse drops. If the MultiFuse is dropped without any additional logic, all active MultiBombs will wait indefinitely to explode.

Implementations§

Ignites the fuse.

Explodes all MultiBombs associated to this MultiFuse. Each MultiBomb receives value.

Alias to light

Lights the fuse.

Explodes all MultiBombs associated to this MultiFuse. Each MultiBomb receives value.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.