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

The name of backend

Examples: tcp, serial.

The backend description

Create connector

This method should check URL and extract connection options from it.

Method returns connector instance when URL is compatible with backend.

Implementors