pub struct MeshRoutingConfig {Show 16 fields
pub selection_strategy: SelectionStrategy,
pub fairness_enabled: bool,
pub cashu_payment_weight: f64,
pub cashu_payment_default_block_threshold: u64,
pub cashu_accepted_mints: Vec<String>,
pub cashu_default_mint: Option<String>,
pub cashu_peer_suggested_mint_base_cap_sat: u64,
pub cashu_peer_suggested_mint_success_step_sat: u64,
pub cashu_peer_suggested_mint_receipt_step_sat: u64,
pub cashu_peer_suggested_mint_max_cap_sat: u64,
pub dispatch: RequestDispatchConfig,
pub response_behavior: ResponseBehaviorConfig,
pub pubsub_scheduler: PubsubSchedulerConfig,
pub pubsub_delivery_mode: PubsubDeliveryMode,
pub pubsub_forwarding: bool,
pub pubsub_max_htl: u8,
}Expand description
Routing policy for request ordering + dispatch fanout.
Fields§
§selection_strategy: SelectionStrategy§fairness_enabled: bool§cashu_payment_weight: f64Blend weight for payment-priority ranking in selector (0.0 disables).
cashu_payment_default_block_threshold: u64Refuse serving peers that have reached this many unpaid post-delivery settlements.
0 disables refusal and only keeps metadata/downranking.
cashu_accepted_mints: Vec<String>Cashu mint URLs this node is willing to use for settlement.
cashu_default_mint: Option<String>Preferred Cashu mint URL when initiating paid retrieval.
cashu_peer_suggested_mint_base_cap_sat: u64Baseline cap for accepting a peer-suggested mint outside the trusted set.
cashu_peer_suggested_mint_success_step_sat: u64Additional sats allowed per successful delivery from that peer.
cashu_peer_suggested_mint_receipt_step_sat: u64Additional sats allowed per successful post-delivery payment received from that peer.
cashu_peer_suggested_mint_max_cap_sat: u64Hard upper bound for any single peer-suggested mint quote we accept.
dispatch: RequestDispatchConfig§response_behavior: ResponseBehaviorConfig§pubsub_scheduler: PubsubSchedulerConfig§pubsub_delivery_mode: PubsubDeliveryMode§pubsub_forwarding: boolForward peer pubsub interests, inventories, and payloads for downstream peers.
pubsub_max_htl: u8Initial hops-to-live for locally originated pubsub interest/inventory frames.
Trait Implementations§
Source§impl Clone for MeshRoutingConfig
impl Clone for MeshRoutingConfig
Source§fn clone(&self) -> MeshRoutingConfig
fn clone(&self) -> MeshRoutingConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MeshRoutingConfig
impl Debug for MeshRoutingConfig
Auto Trait Implementations§
impl Freeze for MeshRoutingConfig
impl RefUnwindSafe for MeshRoutingConfig
impl Send for MeshRoutingConfig
impl Sync for MeshRoutingConfig
impl Unpin for MeshRoutingConfig
impl UnsafeUnpin for MeshRoutingConfig
impl UnwindSafe for MeshRoutingConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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>
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