pub struct MeshConfig {
pub node_id: Option<String>,
pub storage_path: Option<PathBuf>,
pub topology: TopologyConfig,
pub discovery: MeshDiscoveryConfig,
pub security: SecurityConfig,
pub transport_manager: Option<TransportManagerConfig>,
pub iroh: IrohConfig,
}Expand description
Top-level configuration for PeatMesh.
Composes topology, discovery, and security settings into a single
configuration struct that drives the crate::mesh::PeatMesh facade.
Fields§
§node_id: Option<String>Node identifier. Auto-generated (UUID v4) if None.
storage_path: Option<PathBuf>Optional path for persistent storage.
topology: TopologyConfigTopology formation configuration.
discovery: MeshDiscoveryConfigPeer discovery configuration.
security: SecurityConfigSecurity configuration.
transport_manager: Option<TransportManagerConfig>Transport manager configuration for multi-transport selection.
iroh: IrohConfigIroh networking configuration.
Trait Implementations§
Source§impl Clone for MeshConfig
impl Clone for MeshConfig
Source§fn clone(&self) -> MeshConfig
fn clone(&self) -> MeshConfig
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 MeshConfig
impl Debug for MeshConfig
Source§impl Default for MeshConfig
impl Default for MeshConfig
Source§fn default() -> MeshConfig
fn default() -> MeshConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MeshConfig
impl !RefUnwindSafe for MeshConfig
impl Send for MeshConfig
impl Sync for MeshConfig
impl Unpin for MeshConfig
impl UnsafeUnpin for MeshConfig
impl !UnwindSafe for MeshConfig
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