pub enum TimeoutMode {
Immediate,
WaitUpTo(i32),
Never,
}
Expand description
The various timeouts that you can set for get_input
to operate with.
Use this with the set_input_timeout
method.
Variants§
Immediate
If no input is available, return None
.
WaitUpTo(i32)
Wait up to this many milliseconds before returning None
.
Never
Block until input is given.
Trait Implementations§
Source§impl Clone for TimeoutMode
impl Clone for TimeoutMode
Source§fn clone(&self) -> TimeoutMode
fn clone(&self) -> TimeoutMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TimeoutMode
impl Debug for TimeoutMode
Source§impl Default for TimeoutMode
impl Default for TimeoutMode
Source§impl Hash for TimeoutMode
impl Hash for TimeoutMode
Source§impl Ord for TimeoutMode
impl Ord for TimeoutMode
Source§fn cmp(&self, other: &TimeoutMode) -> Ordering
fn cmp(&self, other: &TimeoutMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TimeoutMode
impl PartialEq for TimeoutMode
Source§impl PartialOrd for TimeoutMode
impl PartialOrd for TimeoutMode
impl Copy for TimeoutMode
impl Eq for TimeoutMode
impl StructuralPartialEq for TimeoutMode
Auto Trait Implementations§
impl Freeze for TimeoutMode
impl RefUnwindSafe for TimeoutMode
impl Send for TimeoutMode
impl Sync for TimeoutMode
impl Unpin for TimeoutMode
impl UnwindSafe for TimeoutMode
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