Struct vapcore_sync::NetworkConfiguration [−][src]
Network service configuration
Fields
config_path: Option<String>
Directory path to store general network configuration. None means nothing will be saved
net_config_path: Option<String>
Directory path to store network-specific configuration. None means nothing will be saved
listen_address: Option<String>
IP address to listen for incoming connections. Listen to all connections by default
public_address: Option<String>
IP address to advertise. Detected automatically if none.
udp_port: Option<u16>
Port for UDP connections, same as TCP by default
nat_enabled: bool
Enable NAT configuration
nat_type: NatType
Nat type
discovery_enabled: bool
Enable discovery
boot_nodes: Vec<String>
List of initial node addresses
use_secret: Option<Secret>
Use provided node key instead of default
max_peers: u32
Max number of connected peers to maintain
min_peers: u32
Min number of connected peers to maintain
max_pending_peers: u32
Max pending peers.
snapshot_peers: u32
Reserved snapshot sync peers.
reserved_nodes: Vec<String>
List of reserved node addresses.
allow_non_reserved: bool
The non-reserved peer mode.
ip_filter: IpFilter
IP Filtering
client_version: String
Client version string
Implementations
impl NetworkConfiguration
[src]
pub fn new() -> Self
[src]
Create a new default config.
pub fn new_local() -> Self
[src]
Create a new local config.
pub fn into_basic(self) -> Result<BasicNetworkConfiguration, AddrParseError>
[src]
Attempt to convert this config into a BasicNetworkConfiguration.
Trait Implementations
impl Clone for NetworkConfiguration
[src]
fn clone(&self) -> NetworkConfiguration
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for NetworkConfiguration
[src]
impl Eq for NetworkConfiguration
[src]
impl From<NetworkConfiguration> for NetworkConfiguration
[src]
fn from(other: BasicNetworkConfiguration) -> Self
[src]
impl PartialEq<NetworkConfiguration> for NetworkConfiguration
[src]
fn eq(&self, other: &NetworkConfiguration) -> bool
[src]
fn ne(&self, other: &NetworkConfiguration) -> bool
[src]
impl StructuralEq for NetworkConfiguration
[src]
impl StructuralPartialEq for NetworkConfiguration
[src]
Auto Trait Implementations
impl RefUnwindSafe for NetworkConfiguration
impl Send for NetworkConfiguration
impl Sync for NetworkConfiguration
impl Unpin for NetworkConfiguration
impl UnwindSafe for NetworkConfiguration
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> MaybeDebug for T where
T: Debug,
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
T: Debug,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,