pub enum Input {
Text(String),
End,
Pending,
}Expand description
What a host has when it is asked for input.
Variants§
Text(String)
A line the player entered, or a key.
End
There is no more input and never will be.
Pending
There is none yet. The VM stops where it is and hands control back, and asks again when it is resumed. A host that cannot wait for the player without freezing, as in a browser, answers this way; one that can wait never needs to.
Trait Implementations§
impl Eq for Input
impl StructuralPartialEq for Input
Auto Trait Implementations§
impl Forget for Input
impl Freeze for Input
impl Move for Input
impl RefUnwindSafe for Input
impl Send for Inputwhere
RawVecInner: Send,
impl Sync for Inputwhere
RawVecInner: Sync,
impl Unpin for Input
impl UnsafeUnpin for Input
impl UnwindSafe for Inputwhere
RawVecInner: UnwindSafe,
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