pub struct LaneStatusHandles {
pub pool_store: Arc<dyn PoolStateStore>,
pub lane_activity: LaneActivityClock,
pub redeem_threshold_micro_usdc: u64,
}Expand description
Read-only lane handles the admin_v1_lanes handler snapshots (issue
#749). Each is an Arc clone of state the runtime already owns and
shares with the cdn/client/v1 handler and the settlement service, so
attaching this to AdminState adds read access, not new ownership.
Bundled into one struct so the with_lanes builder stays a single
argument.
Fields§
§pool_store: Arc<dyn PoolStateStore>Persistent per-lane voucher state (same handle the client handler
commits accepted vouchers to). Read via load_all to build the
snapshot — the freshest committed last_* per lane.
lane_activity: LaneActivityClockRead handle over the client handler’s live lane registry (issue #1733).
Read for seconds_since_last_voucher; a lane reads back None until
this process accepts a voucher for it.
redeem_threshold_micro_usdc: u64Configured redemption threshold in micro-USDC
(blockchain.redeem_threshold_micro_usdc). A lane whose accrued
claim has reached this is reported settlement_eligible.
Trait Implementations§
Source§impl Clone for LaneStatusHandles
impl Clone for LaneStatusHandles
Auto Trait Implementations§
impl !RefUnwindSafe for LaneStatusHandles
impl !UnwindSafe for LaneStatusHandles
impl Freeze for LaneStatusHandles
impl Send for LaneStatusHandles
impl Sync for LaneStatusHandles
impl Unpin for LaneStatusHandles
impl UnsafeUnpin for LaneStatusHandles
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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 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>
T in a tonic::Request