pub async fn check_mail(&self, uri: &Uri) -> Status {
        let input = CheckEmailInput::new(vec![uri.as_str().to_owned()]);
        let result = &(check_email(&input).await)[0];

        if let Reachable::Invalid = result.is_reachable {
            ErrorKind::UnreachableEmailAddress(uri.clone(), mail::error_from_output(result)).into()
        } else {
            Status::Ok(StatusCode::OK)
        }
    }
/// Check a mail address, or equivalently a `mailto` URI.
Check a mail address, or equivalently a `mailto` URI.
Check a mail address or equivalently a ` mailto ` URI .
pub async fn check_mail(&self, uri: &Uri) -> Status {
        let input = CheckEmailInput::new(vec![uri.as_str().to_owned()]);
        let result = &(check_email(&input).await)[0];
        if let Reachable::Invalid = result.is_reachable {
            ErrorKind::UnreachableEmailAddress(uri.clone(), mail::error_from_output(result)).into()
        } else {
            Status::Ok(StatusCode::OK)
        }
    }
pub async fn check_mail ( & self , uri : & Uri ) -> Status { let input = CheckEmailInput :: new ( vec ! [ uri as_str ( ) to_owned ( ) ] ) ; let result = & ( check_email ( & input ) . await ) [ 0 ] ; if let Reachable :: Invalid = result . is_reachable { ErrorKind :: UnreachableEmailAddress ( uri . clone ( ) , mail :: error_from_output ( result ) ) . into ( ) } else { Status :: Ok ( StatusCode :: OK ) } }
Check a mail address, or equivalently a `mailto` URI.
Check a mail address or equivalently a ` mailto ` URI .
&self
uri
&Uri