pub struct ForwardRule {
pub name: Option<String>,
pub listen: String,
pub target: String,
pub protocol: ProtocolKind,
pub udp_idle_secs: u64,
pub transport: Option<Transport>,
pub token: Option<String>,
}Fields§
§name: Option<String>§listen: String§target: String§protocol: ProtocolKind§udp_idle_secs: u64§transport: Option<Transport>Wraps the external (listen-side) TCP connection per Transport.
None leaves it plaintext. Only applies to the TCP leg; UDP
forwarding is unaffected. The leg from erbridge to target remains
plaintext either way.
token: Option<String>Meaning depends on transport: see Transport::Tls and
Transport::Noise. Required when transport = "noise".
Implementations§
Trait Implementations§
Source§impl Clone for ForwardRule
impl Clone for ForwardRule
Source§impl Debug for ForwardRule
impl Debug for ForwardRule
Source§impl<'de> Deserialize<'de> for ForwardRule
impl<'de> Deserialize<'de> for ForwardRule
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 ForwardRule
impl RefUnwindSafe for ForwardRule
impl Send for ForwardRule
impl Sync for ForwardRule
impl Unpin for ForwardRule
impl UnsafeUnpin for ForwardRule
impl UnwindSafe for ForwardRule
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