pub struct DerpServerConfig {
pub enabled: bool,
pub private_key: String,
pub mesh_key: Option<String>,
pub node_name: Option<String>,
pub stun_bind_addr: Option<String>,
pub verify_clients: bool,
pub keepalive_interval_secs: u64,
pub mesh_retry_interval_secs: u64,
}Fields§
§enabled: bool§private_key: String§mesh_key: Option<String>§node_name: Option<String>§stun_bind_addr: Option<String>§verify_clients: bool§keepalive_interval_secs: u64§mesh_retry_interval_secs: u64Implementations§
Source§impl DerpServerConfig
impl DerpServerConfig
Sourcepub const PATH_ENABLED: &'static str = enabled
pub const PATH_ENABLED: &'static str = enabled
Dot-delimited path constant for this direct config field.
Sourcepub const PATH_PRIVATE_KEY: &'static str = private_key
pub const PATH_PRIVATE_KEY: &'static str = private_key
Dot-delimited path constant for this direct config field.
Sourcepub const PATH_MESH_KEY: &'static str = mesh_key
pub const PATH_MESH_KEY: &'static str = mesh_key
Dot-delimited path constant for this direct config field.
Sourcepub const PATH_NODE_NAME: &'static str = node_name
pub const PATH_NODE_NAME: &'static str = node_name
Dot-delimited path constant for this direct config field.
Sourcepub const PATH_STUN_BIND_ADDR: &'static str = stun_bind_addr
pub const PATH_STUN_BIND_ADDR: &'static str = stun_bind_addr
Dot-delimited path constant for this direct config field.
Sourcepub const PATH_VERIFY_CLIENTS: &'static str = verify_clients
pub const PATH_VERIFY_CLIENTS: &'static str = verify_clients
Dot-delimited path constant for this direct config field.
Sourcepub const PATH_KEEPALIVE_INTERVAL_SECS: &'static str = keepalive_interval_secs
pub const PATH_KEEPALIVE_INTERVAL_SECS: &'static str = keepalive_interval_secs
Dot-delimited path constant for this direct config field.
Sourcepub const PATH_MESH_RETRY_INTERVAL_SECS: &'static str = mesh_retry_interval_secs
pub const PATH_MESH_RETRY_INTERVAL_SECS: &'static str = mesh_retry_interval_secs
Dot-delimited path constant for this direct config field.
Trait Implementations§
Source§impl Clone for DerpServerConfig
impl Clone for DerpServerConfig
Source§fn clone(&self) -> DerpServerConfig
fn clone(&self) -> DerpServerConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 DerpServerConfig
impl Debug for DerpServerConfig
Source§impl Default for DerpServerConfig
impl Default for DerpServerConfig
Source§impl<'de> Deserialize<'de> for DerpServerConfigwhere
DerpServerConfig: Default,
impl<'de> Deserialize<'de> for DerpServerConfigwhere
DerpServerConfig: Default,
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
Source§impl PartialEq for DerpServerConfig
impl PartialEq for DerpServerConfig
Source§impl Serialize for DerpServerConfig
impl Serialize for DerpServerConfig
Source§impl TierMetadata for DerpServerConfig
impl TierMetadata for DerpServerConfig
Source§fn metadata() -> ConfigMetadata
fn metadata() -> ConfigMetadata
Returns metadata for the configuration type.
Source§fn secret_paths() -> Vec<String>
fn secret_paths() -> Vec<String>
Returns configuration paths that should be treated as secrets.
impl Eq for DerpServerConfig
impl StructuralPartialEq for DerpServerConfig
Auto Trait Implementations§
impl Freeze for DerpServerConfig
impl RefUnwindSafe for DerpServerConfig
impl Send for DerpServerConfig
impl Sync for DerpServerConfig
impl Unpin for DerpServerConfig
impl UnsafeUnpin for DerpServerConfig
impl UnwindSafe for DerpServerConfig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.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