fn enqueue(&self, operation: Operation) {
            match &self.mode {
                Mode::Valid { operations, .. } => {
                    operations.try_lock().unwrap().push_back(operation);
                }
                Mode::Invalid => panic!("Cannot queue operations on a failing FakeConnection"),
            }
        }
/// Enqueues a single operation, provided the connection is valid.
/// Panics if called on a connection that has been set to fail.
Enqueues a single operation, provided the connection is valid.
Panics if called on a connection that has been set to fail.
Enqueues a single operation provided the connection is valid . Panics if called on a connection that has been set to fail .
fn enqueue(&self, operation: Operation) {
            match &self.mode {
                Mode::Valid { operations, .. } => {
                    operations.try_lock().unwrap().push_back(operation);
                }
                Mode::Invalid => panic!("Cannot queue operations on a failing FakeConnection"),
            }
        }
fn enqueue ( & self , operation : Operation ) { match & self . mode { Mode :: Valid { operations , .. } => { operations . try_lock ( ) . unwrap ( ) . push_back ( operation ) ; } Mode :: Invalid => panic ! ( " " ) , } }
Enqueues a single operation, provided the connection is valid.
Enqueues a single operation provided the connection is valid .
&self
operation
Operation