pub struct SerializableConfig {Show 17 fields
pub privacy_level: isize,
pub location: Option<String>,
pub roles: HashSet<Role>,
pub keypair: Vec<u8>,
pub entry_peers: Vec<String>,
pub listen_on: Vec<String>,
pub namespace: String,
pub discovery_ttl: Option<u64>,
pub static_exits: Vec<String>,
pub static_routes: Vec<SerializableRouteDescriptor>,
pub sserver_listen_addr: String,
pub sclient_listen_addr: String,
pub fdlimit: bool,
pub external_addrs: Vec<String>,
pub token: Option<String>,
pub device_id: Option<String>,
pub route_auth_enabled: bool,
}Fields§
§privacy_level: isize§location: Option<String>§roles: HashSet<Role>§keypair: Vec<u8>§entry_peers: Vec<String>§listen_on: Vec<String>§namespace: String§discovery_ttl: Option<u64>§static_exits: Vec<String>deprecated
static_routes: Vec<SerializableRouteDescriptor>§sserver_listen_addr: String§sclient_listen_addr: String§fdlimit: bool§external_addrs: Vec<String>§token: Option<String>§device_id: Option<String>§route_auth_enabled: boolTrait Implementations§
Source§impl Clone for SerializableConfig
impl Clone for SerializableConfig
Source§fn clone(&self) -> SerializableConfig
fn clone(&self) -> SerializableConfig
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 SerializableConfig
impl Debug for SerializableConfig
Source§impl<'de> Deserialize<'de> for SerializableConfig
impl<'de> Deserialize<'de> for SerializableConfig
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 From<Config> for SerializableConfig
impl From<Config> for SerializableConfig
Source§impl From<SerializableConfig> for Config
impl From<SerializableConfig> for Config
Source§fn from(config: SerializableConfig) -> Self
fn from(config: SerializableConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SerializableConfig
impl RefUnwindSafe for SerializableConfig
impl Send for SerializableConfig
impl Sync for SerializableConfig
impl Unpin for SerializableConfig
impl UnwindSafe for SerializableConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> CloneAny for T
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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