pub fn query_recent(&mut self) -> Result<Vec<MessageStatus>, Error> {
        let mut guard = match (*self.storage).write() {
            Ok(guard) => guard,
            Err(_) => return Err(Error::Lock),
        };

        let vec_statuses = (*guard).retrieve_all_recent()?;
        Ok(vec_statuses.iter().map(|s| s.as_message_status()).collect())
    }
// Query recently queued and sent emails. This includes all emails where sending is not
// yet complete, and also all emails where sending is complete but for which they have
// not yet been reported on (via this function).
Query recently queued and sent emails. This includes all emails where sending is not
yet complete, and also all emails where sending is complete but for which they have
not yet been reported on (via this function).
Query recently queued and sent emails . This includes all emails where sending is not yet complete and also all emails where sending is complete but for which they have not yet been reported on ( via this function ) .
pub fn query_recent(&mut self) -> Result<Vec<MessageStatus>, Error> {
        let mut guard = match (*self.storage).write() {
            Ok(guard) => guard,
            Err(_) => return Err(Error::Lock),
        };
        let vec_statuses = (*guard).retrieve_all_recent()?;
        Ok(vec_statuses.iter().map(|s| s.as_message_status()).collect())
    }
pub fn query_recent ( & mut self ) -> Result < Vec < MessageStatus > , Error > { let mut guard = match ( * self . storage ) . write ( ) { Ok ( guard ) => guard , Err ( _ ) => return Err ( Error :: Lock ) , } ; let vec_statuses = ( * guard ) . retrieve_all_recent ( ) ? ; Ok ( vec_statuses . iter ( ) . map ( | s | s . as_message_status ( ) ) . collect ( ) ) }
Query recently queued and sent emails.
Query recently queued and sent emails .
&mut self
&mut self