pub struct TransportsConfig {
pub udp: TransportInstances<UdpConfig>,
pub ethernet: TransportInstances<EthernetConfig>,
pub tcp: TransportInstances<TcpConfig>,
pub tor: TransportInstances<TorConfig>,
pub ble: TransportInstances<BleConfig>,
}Expand description
Transports configuration section.
Each transport type can have either a single instance (config directly under the type name) or multiple named instances.
Fields§
§udp: TransportInstances<UdpConfig>UDP transport instances.
ethernet: TransportInstances<EthernetConfig>Ethernet transport instances.
tcp: TransportInstances<TcpConfig>TCP transport instances.
tor: TransportInstances<TorConfig>Tor transport instances.
ble: TransportInstances<BleConfig>BLE transport instances.
Implementations§
Trait Implementations§
Source§impl Clone for TransportsConfig
impl Clone for TransportsConfig
Source§fn clone(&self) -> TransportsConfig
fn clone(&self) -> TransportsConfig
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 TransportsConfig
impl Debug for TransportsConfig
Source§impl Default for TransportsConfig
impl Default for TransportsConfig
Source§fn default() -> TransportsConfig
fn default() -> TransportsConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TransportsConfig
impl<'de> Deserialize<'de> for TransportsConfig
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 TransportsConfig
impl RefUnwindSafe for TransportsConfig
impl Send for TransportsConfig
impl Sync for TransportsConfig
impl Unpin for TransportsConfig
impl UnsafeUnpin for TransportsConfig
impl UnwindSafe for TransportsConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more