pub struct FederationConfig {
pub mode: FederationMode,
pub router_id: String,
pub owned_namespaces: Vec<String>,
pub auth_token: Option<String>,
pub auto_reconnect: bool,
pub reconnect_delay: Duration,
pub max_reconnect_attempts: u32,
pub sync_interval: Duration,
pub client_name: String,
pub features: Vec<String>,
}Expand description
Configuration for a federation link
Fields§
§mode: FederationModeOperating mode
router_id: StringRouter identity name (used in origin field for loop prevention)
owned_namespaces: Vec<String>Namespace patterns this router owns (e.g., “/site-a/**”)
auth_token: Option<String>Token for authenticating to peers (if required)
auto_reconnect: boolReconnect on disconnect
reconnect_delay: DurationReconnect delay
max_reconnect_attempts: u32Maximum reconnect attempts (0 = unlimited)
sync_interval: DurationHow often to exchange revision vectors for sync verification
client_name: StringClient name to advertise in HELLO
features: Vec<String>Features to advertise in HELLO
Trait Implementations§
Source§impl Clone for FederationConfig
impl Clone for FederationConfig
Source§fn clone(&self) -> FederationConfig
fn clone(&self) -> FederationConfig
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 FederationConfig
impl Debug for FederationConfig
Auto Trait Implementations§
impl Freeze for FederationConfig
impl RefUnwindSafe for FederationConfig
impl Send for FederationConfig
impl Sync for FederationConfig
impl Unpin for FederationConfig
impl UnsafeUnpin for FederationConfig
impl UnwindSafe for FederationConfig
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