pub struct BatchConfig {
pub poll_interval_secs: u64,
pub max_batch_size: usize,
pub target_block_time_secs: u64,
pub standard_deadline_secs: Option<u64>,
pub economy_deadline_secs: Option<u64>,
pub fee_options: Vec<String>,
pub fee_fallback_sat_per_vb: f64,
pub fee_cache_ttl_secs: u64,
pub quote_max_input_count: usize,
pub quote_fixed_safety_sat: u64,
pub quote_safety_multiplier: f64,
}Fields§
§poll_interval_secs: u64How often the batch processor wakes up to check for ready intents
max_batch_size: usizeMaximum number of intents to include in a single batch
target_block_time_secs: u64Average block interval used to derive default delayed tier deadlines.
standard_deadline_secs: Option<u64>Optional override for how long standard-tier intents wait before being eligible
economy_deadline_secs: Option<u64>Optional override for how long economy-tier intents wait before being eligible
fee_options: Vec<String>Fee tiers exposed in melt quotes. Order determines fee_index values.
fee_fallback_sat_per_vb: f64Quote-time fallback fee rate used when chain estimation fails, in sat/vB.
fee_cache_ttl_secs: u64Fee-rate cache TTL, in seconds.
quote_max_input_count: usizeMaximum input count reserved for a quote estimate.
quote_fixed_safety_sat: u64Fixed safety margin added to quote-time fee estimates, in sats.
quote_safety_multiplier: f64Multiplicative safety margin applied after the raw quote fee estimate.
Trait Implementations§
Source§impl Clone for BatchConfig
impl Clone for BatchConfig
Source§fn clone(&self) -> BatchConfig
fn clone(&self) -> BatchConfig
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 BatchConfig
impl Debug for BatchConfig
Source§impl Default for BatchConfig
Available on crate feature bdk only.
impl Default for BatchConfig
Available on crate feature
bdk only.Source§impl<'de> Deserialize<'de> for BatchConfig
impl<'de> Deserialize<'de> for BatchConfig
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 From<BatchConfig> for BatchConfig
Available on crate feature bdk only.
impl From<BatchConfig> for BatchConfig
Available on crate feature
bdk only.Source§fn from(config: BatchConfig) -> Self
fn from(config: BatchConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BatchConfig
impl RefUnwindSafe for BatchConfig
impl Send for BatchConfig
impl Sync for BatchConfig
impl Unpin for BatchConfig
impl UnsafeUnpin for BatchConfig
impl UnwindSafe for BatchConfig
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
Converts
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>
Converts
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request