pub struct BootstrapState {
pub config: BootstrapConfig,
pub peers: Vec<PeerConfig>,
pub allocator_state: Option<IpAllocatorState>,
}Expand description
Persistent state for the overlay bootstrap
Fields§
§config: BootstrapConfigBootstrap configuration
peers: Vec<PeerConfig>List of configured peers
allocator_state: Option<IpAllocatorState>IP allocator state (only for leader)
Trait Implementations§
Source§impl Clone for BootstrapState
impl Clone for BootstrapState
Source§fn clone(&self) -> BootstrapState
fn clone(&self) -> BootstrapState
Returns a duplicate 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 moreSource§impl Debug for BootstrapState
impl Debug for BootstrapState
Source§impl<'de> Deserialize<'de> for BootstrapState
impl<'de> Deserialize<'de> for BootstrapState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BootstrapState
impl RefUnwindSafe for BootstrapState
impl Send for BootstrapState
impl Sync for BootstrapState
impl Unpin for BootstrapState
impl UnsafeUnpin for BootstrapState
impl UnwindSafe for BootstrapState
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