Function mailslurp::apis::wait_for_controller_api::wait_for_email_count[][src]

pub async fn wait_for_email_count(
    configuration: &Configuration,
    params: WaitForEmailCountParams
) -> Result<Vec<EmailPreview>, Error<WaitForEmailCountError>>

If inbox contains count or more emails at time of request then return count worth of emails. If not wait until the count is reached and return those or return an error if timeout is exceeded.