pub fn len(&self) -> usize {
        self.event_queue
            .lock()
            .expect("EventAdapter::len: Cannot lock event queue.")
            .len()
    }
/// Returns the number of events in the queue.
Returns the number of events in the queue.
Returns the number of events in the queue .
pub fn len(&self) -> usize {
        self.event_queue
            .lock()
            .expect("EventAdapter::len: Cannot lock event queue.")
            .len()
    }
pub fn len ( & self ) -> usize { self . event_queue . lock ( ) . expect ( " " ) . len ( ) }
Returns the number of events in the queue.
Returns the number of events in the queue .
&self