pub struct Window {
pub limit: Option<u64>,
pub remaining: Option<u64>,
pub reset: Option<Duration>,
}Available on crate feature
provider-headers only.Expand description
One metered dimension’s reported window: its ceiling, what is left, and how long until it refills. Any field may be absent if the server did not send it.
Fields§
§limit: Option<u64>The dimension’s ceiling for the window.
remaining: Option<u64>Units remaining in the current window.
reset: Option<Duration>Time until the window resets.
Trait Implementations§
impl Copy for Window
impl Eq for Window
impl StructuralPartialEq for Window
Auto Trait Implementations§
impl Freeze for Window
impl RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl UnsafeUnpin for Window
impl UnwindSafe for Window
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