pub fn verify(&self) -> ExpectationResult {
        let mut status = Ok(());

        // Lock our inner mutex
        let mut inner = self.0.lock().unwrap();

        let original_unverified_era = inner.current_unverified_era;

        'eras: for era_index in original_unverified_era .. inner.eras.len() {
            // Update our current unverified era to be the current Era index
            inner.current_unverified_era = era_index;

            // If we have any not-yet-verified Expectations in this Era, do not
            // mark it as complete
            let era = &inner.eras[era_index];
            for id in era.iter() {
                let expectation = inner.expectations.get(id).unwrap();
                let r = expectation.verify();
                if r.is_err() {
                    // Note the error in this Era
                    status = r;
                    // Stop processing Eras since this one is still incomplete
                    break 'eras;
                }
            }
        }

        status
    }
/// Verify all expectations in this store.
Verify all expectations in this store.
Verify all expectations in this store .
pub fn verify(&self) -> ExpectationResult {
        let mut status = Ok(());
        // Lock our inner mutex
        let mut inner = self.0.lock().unwrap();
        let original_unverified_era = inner.current_unverified_era;
        'eras: for era_index in original_unverified_era .. inner.eras.len() {
            // Update our current unverified era to be the current Era index
            inner.current_unverified_era = era_index;
            // If we have any not-yet-verified Expectations in this Era, do not
            // mark it as complete
            let era = &inner.eras[era_index];
            for id in era.iter() {
                let expectation = inner.expectations.get(id).unwrap();
                let r = expectation.verify();
                if r.is_err() {
                    // Note the error in this Era
                    status = r;
                    // Stop processing Eras since this one is still incomplete
                    break 'eras;
                }
            }
        }
        status
    }
pub fn verify ( & self ) -> ExpectationResult { let mut status = Ok ( ( ) ) ; // Lock our inner mutex let mut inner = self . 0 . lock ( ) . unwrap ( ) ; let original_unverified_era = inner . current_unverified_era ; ' eras : for era_index in original_unverified_era .. inner . eras . len ( ) { // Update our current unverified era to be the current Era index inner . current_unverified_era = era_index ; // If we have any not-yet-verified Expectations in this Era, do not // mark it as complete let era = & inner . eras [ era_index ] ; for id in era . iter ( ) { let expectation = inner . expectations . get ( id ) . unwrap ( ) ; let r = expectation . verify ( ) ; if r . is_err ( ) { // Note the error in this Era status = r ; // Stop processing Eras since this one is still incomplete break ' eras ; } } } status }
Verify all expectations in this store.
Verify all expectations in this store .
&self
&self