pub trait Backend {
// Required methods
fn name(&self) -> &str;
fn description(&self) -> &str;
fn connector(&self, url: &Url) -> Option<BoxedConnector>;
}
Expand description
Backend interface
Required Methods§
sourcefn description(&self) -> &str
fn description(&self) -> &str
The backend description
sourcefn connector(&self, url: &Url) -> Option<BoxedConnector>
fn connector(&self, url: &Url) -> Option<BoxedConnector>
Create connector
This method should check URL and extract connection options from it.
Method returns connector instance when URL is compatible with backend.