blob: e35262103d88877d2f48474abd8d4bea4f1062ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
use std::time::Instant;
pub struct NetWidgetState {
pub current_display_time: u64,
pub autohide_timer: Option<Instant>,
}
impl NetWidgetState {
pub fn init(current_display_time: u64, autohide_timer: Option<Instant>) -> Self {
NetWidgetState {
current_display_time,
autohide_timer,
}
}
}
|