pub fn event(&mut self) -> Option<Event> {
        self.event.map(|(new_epoch, event)| {
            *self.curr_epoch = new_epoch;
            event
        })
    }
/// Reads the last event. When this method is called, the event is marked as
/// read, and in subsequent locks to the terminal handle, it won't be
/// available. If not called and no other event arrives, this will not
/// be marked as read and it will be available in the next locking.
Reads the last event. When this method is called, the event is marked as
read, and in subsequent locks to the terminal handle, it won't be
available. If not called and no other event arrives, this will not
be marked as read and it will be available in the next locking.
Reads the last event . When this method is called the event is marked as read and in subsequent locks to the terminal handle it won ' t be available . If not called and no other event arrives this will not be marked as read and it will be available in the next locking .
pub fn event(&mut self) -> Option<Event> {
        self.event.map(|(new_epoch, event)| {
            *self.curr_epoch = new_epoch;
            event
        })
    }
pub fn event ( & mut self ) -> Option < Event > { self . event . map ( | ( new_epoch , event ) | { * self . curr_epoch = new_epoch ; event } ) }
Reads the last event.
Reads the last event .
&mut self
&mut self