lws_client/src/client.rs

20 lines
541 B
Rust
Raw Normal View History

use lws_client::LwsVfsIns;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let lws_ins = match LwsVfsIns::new("config.json").await{
Ok(ins) => ins,
Err(e) => {
println!("Error creating lws server instance: {:?}", e);
return Err(e);
}
};
match lws_ins.hello(){
Err(e) => {
println!("lws client instance hello err {:?}", e);
return Err(e);
},
_ =>{},
}
LwsVfsIns::mount(lws_ins)
}