pub struct TcpTransportConfig {
pub enabled: bool,
pub bind: String,
pub noise: NoiseConfig,
}Fields§
§enabled: bool§bind: String§noise: NoiseConfigTrait Implementations§
Source§impl Clone for TcpTransportConfig
impl Clone for TcpTransportConfig
Source§fn clone(&self) -> TcpTransportConfig
fn clone(&self) -> TcpTransportConfig
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 TcpTransportConfig
impl Debug for TcpTransportConfig
Source§impl Default for TcpTransportConfig
impl Default for TcpTransportConfig
Source§fn default() -> TcpTransportConfig
fn default() -> TcpTransportConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TcpTransportConfig
impl<'de> Deserialize<'de> for TcpTransportConfig
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 TcpTransportConfig
impl PartialEq for TcpTransportConfig
Source§fn eq(&self, other: &TcpTransportConfig) -> bool
fn eq(&self, other: &TcpTransportConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TcpTransportConfig
impl Serialize for TcpTransportConfig
impl StructuralPartialEq for TcpTransportConfig
Auto Trait Implementations§
impl Freeze for TcpTransportConfig
impl RefUnwindSafe for TcpTransportConfig
impl Send for TcpTransportConfig
impl Sync for TcpTransportConfig
impl Unpin for TcpTransportConfig
impl UnsafeUnpin for TcpTransportConfig
impl UnwindSafe for TcpTransportConfig
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