pub struct DefaultOptionsMonitor<T> { /* private fields */ }
Expand description

Represents the default implementation for notifications when option instances change.

Implementations

Initializes a new default options monitor.

Arguments
  • cache - the cache used for monitored options
  • sources - the source tokens used to track option changes
  • factory - the factory used to create new options

Trait Implementations

Returns the current instance with the default options name.
Returns a configured instance with the given name. Read more
Registers a callback function to be invoked when the configured instance with the given name changes. Read more

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.