pub struct ControlPluginAction<A, R> { /* private fields */ }
Expand description

A control action, which can only be taken by one plugin. When run, control actions will return an Option<R> on what their runners return, which will be None if no runner is set.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Runs the single registered runner for the action.

Registers a plugin that takes this action. Read more

Same as .register_plugin(), but takes a prepared runner in a Box.

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.