Skip to main content

connect

Function connect 

Source
pub fn connect(
    model: &str,
    host: &str,
    port: i32,
    user: &str,
    pass: &str,
) -> Result<Box<dyn Olt>, Error>
Expand description

Connect to an OLT device by model name, returning a type-erased Olt trait object.

Supported models: "ma5603t", "ma5680t", "ma5683t", "ma5800x7".