pub struct NodeConfig {Show 13 fields
key_store: NodeKeyStore,
signing_key: SigningKey,
pub public_key: NodePublicKey,
pub sentinel_url: String,
pub beacon_url: String,
pub supabase_url: String,
pub supabase_anon_key: String,
pub game_data_cache_dir: Option<PathBuf>,
pub name: String,
pub total_cores: i32,
pub enabled_cores: i32,
pub token_claim: Option<Sensitive<String>>,
pub access: AccessControl,
}Expand description
Configuration loaded from environment variables for the simulation node.
Fields§
§key_store: NodeKeyStore§signing_key: SigningKey§public_key: NodePublicKey§sentinel_url: String§beacon_url: String§supabase_url: String§supabase_anon_key: String§game_data_cache_dir: Option<PathBuf>§name: String§total_cores: i32§enabled_cores: i32§token_claim: Option<Sensitive<String>>§access: AccessControlImplementations§
Source§impl NodeConfig
impl NodeConfig
Sourcepub fn load() -> Result<Self, NodeConfigError>
pub fn load() -> Result<Self, NodeConfigError>
Load configuration and establish the persisted signing identity.
§Errors
Returns an error when the identity cannot be loaded or persisted atomically.
pub(crate) fn key_store(&self) -> NodeKeyStore
Trait Implementations§
Source§impl Clone for NodeConfig
impl Clone for NodeConfig
Source§fn clone(&self) -> NodeConfig
fn clone(&self) -> NodeConfig
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 NodeConfig
impl Debug for NodeConfig
Source§impl RequestSigner for NodeConfig
impl RequestSigner for NodeConfig
fn sign_request( &self, method: &str, host: &str, path: &str, body: &[u8], ) -> SignedHeaders
Auto Trait Implementations§
impl Freeze for NodeConfig
impl RefUnwindSafe for NodeConfig
impl Send for NodeConfig
impl Sync for NodeConfig
impl Unpin for NodeConfig
impl UnsafeUnpin for NodeConfig
impl UnwindSafe for NodeConfig
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> 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