pub struct SignalBuilder<'a> { /* private fields */ }
Expand description

Builder for signals.

Implementations

Run the signal class handler in the first emission stage.

Run the signal class handler in the third emission stage.

Run the signal class handler in the last emission stage.

Signals being emitted for an object while currently being in emission for this very object will not be emitted recursively, but instead cause the first emission to be restarted.

This signal supports “::detail” appendices to the signal name upon handler connections and emissions.

Action signals are signals that may freely be emitted on alive objects from user code.

No emissions hooks are supported for this signal.

Varargs signal emission will always collect the arguments, even if there are no signal handlers connected.

The signal is deprecated and will be removed in a future version.

Explicitly set all flags.

This overrides previously set flags on this builder.

Class handler for this signal.

Accumulator for the return values of the signal.

This is called if multiple signal handlers are connected to the signal for accumulating the return values into a single value.

Build the signal.

This does not register the signal yet, which only happens as part of object type registration.

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.