pub struct ClientRule {
pub name: Option<String>,
pub listen: String,
pub server: String,
pub transport: Transport,
pub token: Option<String>,
}Fields§
§name: Option<String>§listen: StringLocal plaintext address this side listens on.
server: StringAddress of a forward mapping with a transport set on the far side.
transport: TransportWhich transport the far side’s mapping uses. Defaults to tls to
match the transport a bare secure = true mapping used before
transport existed.
token: Option<String>Must match that mapping’s token. Required when transport = "noise".
Implementations§
Trait Implementations§
Source§impl Clone for ClientRule
impl Clone for ClientRule
Source§impl Debug for ClientRule
impl Debug for ClientRule
Source§impl<'de> Deserialize<'de> for ClientRule
impl<'de> Deserialize<'de> for ClientRule
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 ClientRule
impl RefUnwindSafe for ClientRule
impl Send for ClientRule
impl Sync for ClientRule
impl Unpin for ClientRule
impl UnsafeUnpin for ClientRule
impl UnwindSafe for ClientRule
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