pub struct MessagingConfig {
pub broadcast: BroadcastConfig,
pub peer_cleanup: PeerCleanupConfig,
}Expand description
Messaging subsystem configuration. Exposes the
[messaging.broadcast] policy that governs how this node
advertises its identity across the mesh, plus a peer-cleanup
subsection that ages out stale entries from the daemon’s
peers_seen identity keystore.
Fields§
§broadcast: BroadcastConfigIdentity-broadcast policy for the multi-hop mesh.
peer_cleanup: PeerCleanupConfigPeriodic cleanup of unreachable mesh-identity entries in the
daemon’s peers_seen table — see PeerCleanupConfig. The
destructive action drops the row + emits peer_forgotten.
Mesh-identity defaults (90 days / daily): identity loss
forces a fresh handshake on next contact (cheap), so a long
horizon keeps the keystore from growing forever on a long-
running node.
Trait Implementations§
Source§impl Clone for MessagingConfig
impl Clone for MessagingConfig
Source§fn clone(&self) -> MessagingConfig
fn clone(&self) -> MessagingConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MessagingConfig
impl Debug for MessagingConfig
Source§impl Default for MessagingConfig
impl Default for MessagingConfig
Source§impl<'de> Deserialize<'de> for MessagingConfig
impl<'de> Deserialize<'de> for MessagingConfig
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 MessagingConfig
impl PartialEq for MessagingConfig
Source§fn eq(&self, other: &MessagingConfig) -> bool
fn eq(&self, other: &MessagingConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MessagingConfig
impl Serialize for MessagingConfig
impl StructuralPartialEq for MessagingConfig
Auto Trait Implementations§
impl Freeze for MessagingConfig
impl RefUnwindSafe for MessagingConfig
impl Send for MessagingConfig
impl Sync for MessagingConfig
impl Unpin for MessagingConfig
impl UnsafeUnpin for MessagingConfig
impl UnwindSafe for MessagingConfig
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