Trait unicom::Backend [−][src]
pub trait Backend {
fn name(&self) -> &str;
fn description(&self) -> &str;
fn connector(&self, url: &Url) -> Option<BoxedConnector>;
}
Expand description
Backend interface
Required methods
fn description(&self) -> &str
fn description(&self) -> &str
The backend description
fn 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.