pub struct PexConfig {
pub enabled: bool,
pub max_peers: usize,
pub request_interval_secs: u64,
pub max_peers_per_response: usize,
pub private_peer_ids: Vec<String>,
}Expand description
PEX configuration.
Fields§
§enabled: bool§max_peers: usize§request_interval_secs: u64§max_peers_per_response: usize§private_peer_ids: Vec<String>Peer IDs that should not be shared in PEX responses (sentry protection).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PexConfig
impl<'de> Deserialize<'de> for PexConfig
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 PexConfig
impl RefUnwindSafe for PexConfig
impl Send for PexConfig
impl Sync for PexConfig
impl Unpin for PexConfig
impl UnsafeUnpin for PexConfig
impl UnwindSafe for PexConfig
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