#[non_exhaustive]pub struct Tx3Config {
pub bind: Vec<Tx3Url>,
pub tls: Option<TlsConfig>,
}Expand description
Tx3 configuration
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bind: Vec<Tx3Url>The list of bindings we should attempt for addressablility by remote peers. The default empty list indicates we will NOT be addressable, and can only make outgoing connections.
Currently, we support the following schemes:
tx3-stfor binding to local tcp network interfacestx3-rstfor binding through a remote relay tcp splicer
tls: Option<TlsConfig>TLS configuration for this node. This will never be serialized to prevent bad practices. You should set this after deserializing from your configuration file. If not specified a default / ephemeral tls config will be generated.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tx3Config
impl<'de> Deserialize<'de> for Tx3Config
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 Tx3Config
impl !RefUnwindSafe for Tx3Config
impl Send for Tx3Config
impl Sync for Tx3Config
impl Unpin for Tx3Config
impl !UnwindSafe for Tx3Config
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