pub struct NodeConfig {
pub transport_enabled: bool,
pub identity: Option<Identity>,
pub interfaces: Vec<InterfaceConfig>,
pub share_instance: bool,
pub rpc_port: u16,
pub cache_dir: Option<PathBuf>,
pub management: ManagementConfig,
}Expand description
Top-level node configuration.
Fields§
§transport_enabled: bool§identity: Option<Identity>§interfaces: Vec<InterfaceConfig>Enable RPC server for external tools (rnstatus, rnpath, etc.)
rpc_port: u16RPC control port (default 37429). Only used when share_instance is true.
cache_dir: Option<PathBuf>Cache directory for announce cache. If None, announce caching is disabled.
management: ManagementConfigRemote management configuration.
Auto Trait Implementations§
impl Freeze for NodeConfig
impl RefUnwindSafe for NodeConfig
impl Send for NodeConfig
impl Sync for NodeConfig
impl Unpin 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