pub(crate) struct ValidatorSetUpdateHandle<N: Network> {
network: N,
}
Expand description
Handle for informing the Network Provider about validator set updates.
It is important for the network provider to know about validator set updates because, for example, if a validator set update adds new validators into the validator set, the network provider may want to establish connections to these new validators.
Fields§
§network: N
Implementations§
source§impl<N: Network> ValidatorSetUpdateHandle<N>
impl<N: Network> ValidatorSetUpdateHandle<N>
sourcepub(crate) fn update_validator_set(&mut self, updates: ValidatorSetUpdates)
pub(crate) fn update_validator_set(&mut self, updates: ValidatorSetUpdates)
Inform the network provider of new validator set updates
that have been committed.
Trait Implementations§
source§impl<N: Clone + Network> Clone for ValidatorSetUpdateHandle<N>
impl<N: Clone + Network> Clone for ValidatorSetUpdateHandle<N>
source§fn clone(&self) -> ValidatorSetUpdateHandle<N>
fn clone(&self) -> ValidatorSetUpdateHandle<N>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<N> Freeze for ValidatorSetUpdateHandle<N>where
N: Freeze,
impl<N> RefUnwindSafe for ValidatorSetUpdateHandle<N>where
N: RefUnwindSafe,
impl<N> Send for ValidatorSetUpdateHandle<N>
impl<N> Sync for ValidatorSetUpdateHandle<N>where
N: Sync,
impl<N> Unpin for ValidatorSetUpdateHandle<N>where
N: Unpin,
impl<N> UnwindSafe for ValidatorSetUpdateHandle<N>where
N: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)