#[non_exhaustive]pub struct QuotaWaitInfo {
pub error: Error,
pub next_attempt_in: Duration,
pub attempt: u32,
}Expand description
Sent each time a stream waits for the WebSocket quota of the next period.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.error: ErrorThe preemption (Error::Preempted) or refused dial (Error::Api, 403) that caused the wait.
next_attempt_in: DurationTime until the next attempt.
attempt: u32Quota waits in a row, starting at 1.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for QuotaWaitInfo
impl !UnwindSafe for QuotaWaitInfo
impl Forget for QuotaWaitInfo
impl Freeze for QuotaWaitInfo
impl Move for QuotaWaitInfo
impl Send for QuotaWaitInfo
impl Sync for QuotaWaitInfo
impl Unpin for QuotaWaitInfo
impl UnsafeUnpin for QuotaWaitInfowhere
*const ApiErrorData is !null: UnsafeUnpin,
PhantomData<ApiErrorData>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const dyn Error + Sync + Send is !null: UnsafeUnpin,
PhantomData<dyn Error + Sync + Send>: UnsafeUnpin,
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