pub struct FeaturePreferences {
pub enable_addrv2: bool,
pub enable_sendheaders: bool,
pub enable_wtxidrelay: bool,
}Expand description
Feature negotiation preferences for a connection.
Fields§
§enable_addrv2: boolWhether to negotiate AddrV2 support (BIP-155).
enable_sendheaders: boolWhether to negotiate SendHeaders support (BIP-130).
enable_wtxidrelay: boolWhether to negotiate WtxidRelay support (BIP-339).
Trait Implementations§
Source§impl Clone for FeaturePreferences
impl Clone for FeaturePreferences
Source§fn clone(&self) -> FeaturePreferences
fn clone(&self) -> FeaturePreferences
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 FeaturePreferences
impl Debug for FeaturePreferences
Source§impl Default for FeaturePreferences
impl Default for FeaturePreferences
Source§impl Display for FeaturePreferences
impl Display for FeaturePreferences
impl Copy for FeaturePreferences
Auto Trait Implementations§
impl Freeze for FeaturePreferences
impl RefUnwindSafe for FeaturePreferences
impl Send for FeaturePreferences
impl Sync for FeaturePreferences
impl Unpin for FeaturePreferences
impl UnwindSafe for FeaturePreferences
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