#[non_exhaustive]pub enum Wait {
Now,
Settled {
millis: u32,
},
}Expand description
What has to happen before the page is read.
Two values, because the choice worth making is whether to pay for settling time at all. Anything finer belongs in the request parameters, where a caller who knows the page can say exactly what to wait for.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Now
Read the page as soon as it arrives.
Settled
Give the page time to stop fetching things, up to this many milliseconds, then read it regardless.
Implementations§
Trait Implementations§
impl Copy for Wait
impl Eq for Wait
impl StructuralPartialEq for Wait
Auto Trait Implementations§
impl Forget for Wait
impl Freeze for Wait
impl Move for Wait
impl RefUnwindSafe for Wait
impl Send for Wait
impl Sync for Wait
impl Unpin for Wait
impl UnsafeUnpin for Wait
impl UnwindSafe for Wait
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