pub struct RateLimit {
pub limit: i32,
pub period: Period,
pub remaining: i32,
pub reset: u128,
}Expand description
接口速度限制
Fields§
§limit: i32限制次数
period: Period限制时期
remaining: i32剩余次数
reset: u128重置时间,单位 s
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RateLimit
impl RefUnwindSafe for RateLimit
impl Send for RateLimit
impl Sync for RateLimit
impl Unpin for RateLimit
impl UnwindSafe for RateLimit
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