done for today
This commit is contained in:
+17
-2
@@ -47,8 +47,7 @@ fn run_app<B: Backend>(
|
||||
tick_rate: Duration,
|
||||
) -> Result<(), Box<dyn Error>>
|
||||
where
|
||||
B::Error: 'static,
|
||||
{
|
||||
B::Error: 'static,{
|
||||
let mut last_tick = Instant::now();
|
||||
loop {
|
||||
terminal.draw(|frame| ui::render(frame, &mut app))?;
|
||||
@@ -77,4 +76,20 @@ where
|
||||
|
||||
pub fn get_servers<'a>() -> Vec<Server<'a>> {
|
||||
//todo: add printer ip addrs
|
||||
let printers: Vec<Server<'a>> = vec![
|
||||
crate::app::Server{
|
||||
name: "Micron+",
|
||||
location:"Office",
|
||||
ip:"192.168.1.247",
|
||||
connected:false,
|
||||
},
|
||||
crate::app::Server{
|
||||
name: "LDO V0.2",
|
||||
location: "Office",
|
||||
ip: "192.168.1.217",
|
||||
connected: false,
|
||||
}
|
||||
];
|
||||
|
||||
return crate::app::Servers::new(printers).servers;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user