pub fn parse_redis_url(input: &str) -> Option<url::Url> {
    match url::Url::parse(input) {
        Ok(result) => match result.scheme() {
            "redis" | "rediss" | "redis+unix" | "unix" => Some(result),
            _ => None,
        },
        Err(_) => None,
    }
}
/// This function takes a redis URL string and parses it into a URL
/// as used by rust-url.  This is necessary as the default parser does
/// not understand how redis URLs function.
This function takes a redis URL string and parses it into a URL
as used by rust-url.  This is necessary as the default parser does
not understand how redis URLs function.
This function takes a redis URL string and parses it into a URL as used by rust - url . This is necessary as the default parser does not understand how redis URLs function .
pub fn parse_redis_url(input: &str) -> Option<url::Url> {
    match url::Url::parse(input) {
        Ok(result) => match result.scheme() {
            "redis" | "rediss" | "redis+unix" | "unix" => Some(result),
            _ => None,
        },
        Err(_) => None,
    }
}
pub fn parse_redis_url ( input : & str ) -> Option < url :: Url > { match url :: Url :: parse ( input ) { Ok ( result ) => match result . scheme ( ) { " " | " " | " " | " " => Some ( result ) , _ => None , } , Err ( _ ) => None , } }
This function takes a redis URL string and parses it into a URL
as used by rust-url.
This function takes a redis URL string and parses it into a URL as used by rust - url .
input
&str
input
&str