/// Create the backend using URL by probing registered backend types
Create the backend using URL by probing registered backend types
Create the backend using URL by probing registered backend types
pub fn create(&self, url: impl ToUrl) -> Result<BoxedConnector> {
        let url = url.to_url()?;
        self.with(|backends| {
            backends
                .iter()
                .filter_map(|backend| backend.connector(&url))
                .next()
                .ok_or_else(|| {
                    error!("No backends which can handle URL {}", url);
                    url.into()
                })
        })
    }
pub fn create ( & self , url : impl ToUrl ) -> Result < BoxedConnector > { let url = url . to_url ( ) ? ; self . with ( | backends | { backends . iter ( ) . filter_map ( | backend | backend . connector ( & url ) ) . next ( ) . ok_or_else ( | | { error ! ( " " url ) ; url . into ( ) } ) } ) }
Create the backend using URL by probing registered backend types
Create the backend using URL by probing registered backend types
&self
url
impl ToUrl