pub struct RelayConfig {
pub enabled: bool,
}Expand description
Settings that control whether this node acts as a relay, forwarding traffic for other peers.
Fields§
§enabled: boolEnables relay forwarding when true. Gateway nodes are implicitly relays regardless of
this setting.
Trait Implementations§
Source§impl Clone for RelayConfig
impl Clone for RelayConfig
Source§fn clone(&self) -> RelayConfig
fn clone(&self) -> RelayConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RelayConfig
impl Debug for RelayConfig
Source§impl Default for RelayConfig
impl Default for RelayConfig
Source§fn default() -> RelayConfig
fn default() -> RelayConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RelayConfig
impl<'de> Deserialize<'de> for RelayConfig
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
Source§impl PartialEq for RelayConfig
impl PartialEq for RelayConfig
Source§fn eq(&self, other: &RelayConfig) -> bool
fn eq(&self, other: &RelayConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RelayConfig
impl Serialize for RelayConfig
impl StructuralPartialEq for RelayConfig
Auto Trait Implementations§
impl Freeze for RelayConfig
impl RefUnwindSafe for RelayConfig
impl Send for RelayConfig
impl Sync for RelayConfig
impl Unpin for RelayConfig
impl UnsafeUnpin for RelayConfig
impl UnwindSafe for RelayConfig
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