pub struct RegistryConfig {
pub address: String,
pub mode: ServerMode,
pub trusted_proxies: Vec<String>,
pub rate_limit: RateLimitConfig,
pub envelope: EnvelopeConfig,
pub tls: Option<TlsConfig>,
pub storage: StorageConfig,
pub presence: PresenceConfig,
pub pow: PowConfig,
pub allow_sync: bool,
pub max_nodes: usize,
}Fields§
§address: String§mode: ServerMode§trusted_proxies: Vec<String>§rate_limit: RateLimitConfig§envelope: EnvelopeConfig§tls: Option<TlsConfig>§storage: StorageConfig§presence: PresenceConfig§pow: PowConfig§allow_sync: bool§max_nodes: usizeImplementations§
Source§impl RegistryConfig
impl RegistryConfig
pub fn load_from_path(path: impl AsRef<Path>) -> RegistryResult<Self>
pub fn validate(&self) -> RegistryResult<()>
pub fn pepper_bytes(&self) -> [u8; 32]
Trait Implementations§
Source§impl Clone for RegistryConfig
impl Clone for RegistryConfig
Source§fn clone(&self) -> RegistryConfig
fn clone(&self) -> RegistryConfig
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 RegistryConfig
impl Debug for RegistryConfig
Source§impl<'de> Deserialize<'de> for RegistryConfig
impl<'de> Deserialize<'de> for RegistryConfig
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 RegistryConfig
impl PartialEq for RegistryConfig
impl Eq for RegistryConfig
impl StructuralPartialEq for RegistryConfig
Auto Trait Implementations§
impl Freeze for RegistryConfig
impl RefUnwindSafe for RegistryConfig
impl Send for RegistryConfig
impl Sync for RegistryConfig
impl Unpin for RegistryConfig
impl UnwindSafe for RegistryConfig
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.