[][src]Struct network_simple_onchain_discovery::ConfigurationChangeListener

pub struct ConfigurationChangeListener { /* fields omitted */ }

Listener which converts published updates from the OnChainConfig to ConnectivityRequests for the ConnectivityManager.


impl ConfigurationChangeListener[src]

pub fn new(
    network_context: Arc<NetworkContext>,
    encryptor: Encryptor,
    conn_mgr_reqs_tx: Sender<ConnectivityRequest>,
    reconfig_events: Receiver<(), OnChainConfigPayload>
) -> Self

Creates a new ConfigurationListener

pub async fn start(__arg0: Self)[src]

Starts the listener to wait on reconfiguration events. Creates an infinite loop.

Auto Trait Implementations

impl !RefUnwindSafe for ConfigurationChangeListener

impl Send for ConfigurationChangeListener

impl Sync for ConfigurationChangeListener

impl Unpin for ConfigurationChangeListener

impl !UnwindSafe for ConfigurationChangeListener

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Error = Infallible

The type returned in the event of a conversion error.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,