pub struct HlRate {
pub used: u32,
pub cap: u32,
}Expand description
Hyperliquid API rate snapshot, optionally reported by the
engine on /v2/status.
used is the number of requests counted against the rolling
one-minute window; cap is the engine’s own per-operator cap
(today 240/min — see engine/zero/shared/http.py::_HL_GLOBAL_MAX).
The widget renders hl:<used>/<cap> with the same tri-color
thresholds as the CLI-side rate bucket, so an operator reads
CLI-side pressure and Hyperliquid-side pressure from two
visually consistent segments.
The engine is the source of truth for both numbers — the CLI never computes them locally.
Fields§
§used: u32§cap: u32Trait Implementations§
Source§impl<'de> Deserialize<'de> for HlRate
impl<'de> Deserialize<'de> for HlRate
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
impl Copy for HlRate
impl Eq for HlRate
impl StructuralPartialEq for HlRate
Auto Trait Implementations§
impl Freeze for HlRate
impl RefUnwindSafe for HlRate
impl Send for HlRate
impl Sync for HlRate
impl Unpin for HlRate
impl UnsafeUnpin for HlRate
impl UnwindSafe for HlRate
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