[−][src]Struct ckb_app_config::NetworkConfig
Fields
whitelist_only: bool
max_peers: u32
max_outbound_peers: u32
path: PathBuf
dns_seeds: Vec<String>
discovery_local_address: bool
ping_interval_secs: u64
ping_timeout_secs: u64
connect_outbound_interval_secs: u64
listen_addresses: Vec<Multiaddr>
public_addresses: Vec<Multiaddr>
bootnodes: Vec<Multiaddr>
whitelist_peers: Vec<Multiaddr>
upnp: bool
bootnode_mode: bool
max_send_buffer: Option<usize>
sync: Option<SyncConfig>
Implementations
impl Config
[src]
pub fn secret_key_path(&self) -> PathBuf
[src]
pub fn peer_store_path(&self) -> PathBuf
[src]
pub fn create_dir_if_not_exists(&self) -> Result<(), Error>
[src]
pub fn max_inbound_peers(&self) -> u32
[src]
pub fn max_outbound_peers(&self) -> u32
[src]
pub fn max_send_buffer(&self) -> usize
[src]
pub fn fetch_private_key(&self) -> Result<SecioKeyPair, Error>
[src]
pub fn whitelist_peers(&self) -> Result<Vec<(PeerId, Multiaddr)>, Error>
[src]
pub fn bootnodes(&self) -> Result<Vec<(PeerId, Multiaddr)>, Error>
[src]
pub fn outbound_peer_service_enabled(&self) -> bool
[src]
pub fn dns_seeding_service_enabled(&self) -> bool
[src]
Trait Implementations
impl Clone for Config
[src]
impl Debug for Config
[src]
impl Default for Config
[src]
impl<'de> Deserialize<'de> for Config
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Config
[src]
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
[src]
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
fn to_owned(&self) -> T
[src]
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,