Enum tuirealm::PollStrategy
source · pub enum PollStrategy {
Once,
TryFor(Duration),
UpTo(usize),
}
Expand description
Poll strategy defines how to call poll
on the event listener.
Variants§
Once
The poll() function will be called once
TryFor(Duration)
The application will keep waiting for events for the provided duration
UpTo(usize)
The poll() function will be called up to n
times, until it will return None
.
Auto Trait Implementations§
impl RefUnwindSafe for PollStrategy
impl Send for PollStrategy
impl Sync for PollStrategy
impl Unpin for PollStrategy
impl UnwindSafe for PollStrategy
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