pub struct ServeConfig {
pub name: String,
pub port: u16,
pub target: ServeTarget,
}Expand description
Configuration for terminating TLS on one tailnet port for one MagicDNS name.
Fields§
§name: StringThe node’s MagicDNS name the certificate is for (e.g.
host.tailnet.ts.net). Must be a tailnet name.
port: u16The tailnet (overlay) port to terminate TLS on.
target: ServeTargetWhat to do with each decrypted stream.
Implementations§
Trait Implementations§
Source§impl Clone for ServeConfig
impl Clone for ServeConfig
Source§fn clone(&self) -> ServeConfig
fn clone(&self) -> ServeConfig
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 ServeConfig
impl Debug for ServeConfig
Source§impl<'de> Deserialize<'de> for ServeConfig
impl<'de> Deserialize<'de> for ServeConfig
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
impl Eq for ServeConfig
Source§impl PartialEq for ServeConfig
impl PartialEq for ServeConfig
Source§fn eq(&self, other: &ServeConfig) -> bool
fn eq(&self, other: &ServeConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ServeConfig
impl Serialize for ServeConfig
impl StructuralPartialEq for ServeConfig
Auto Trait Implementations§
impl Freeze for ServeConfig
impl RefUnwindSafe for ServeConfig
impl Send for ServeConfig
impl Sync for ServeConfig
impl Unpin for ServeConfig
impl UnsafeUnpin for ServeConfig
impl UnwindSafe for ServeConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.