pub struct ConfigurationChangeTokenSource<TOptions> { /* private fields */ }
Available on crate feature cfg only.
Expand description

Represents a change token for monitored Options that are notified when configuration changes.

Implementations§

source§

impl<TOptions> ConfigurationChangeTokenSource<TOptions>

source

pub fn new(name: Option<&str>, configuration: Ref<dyn Configuration>) -> Self

Initializes a new configuration change token source.

Arguments
  • name - The optional name of the options being watched
  • configuration - The source configuration

Trait Implementations§

source§

impl<TOptions> OptionsChangeTokenSource<TOptions> for ConfigurationChangeTokenSource<TOptions>

source§

fn token(&self) -> Box<dyn ChangeToken>

Creates and returns a ChangeToken which can be used to register a change notification callback.
source§

fn name(&self) -> Option<&str>

Gets the name of the option instance being changed, if any.

Auto Trait Implementations§

§

impl<TOptions> !RefUnwindSafe for ConfigurationChangeTokenSource<TOptions>

§

impl<TOptions> !Send for ConfigurationChangeTokenSource<TOptions>

§

impl<TOptions> !Sync for ConfigurationChangeTokenSource<TOptions>

§

impl<TOptions> Unpin for ConfigurationChangeTokenSource<TOptions>
where TOptions: Unpin,

§

impl<TOptions> !UnwindSafe for ConfigurationChangeTokenSource<TOptions>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.