Struct TimeManager
pub(crate) struct TimeManager {
pub(crate) config: Config,
pub(crate) status: StatusHandle,
pub(crate) cmd_rx: Receiver<Command>,
pub(crate) sync_interval: Interval,
pub(crate) fs_clock_path: PathBuf,
pub(crate) network_available: bool,
}Fields§
§config: Config§status: StatusHandle§cmd_rx: Receiver<Command>§sync_interval: Interval§fs_clock_path: PathBuf§network_available: boolImplementations§
§impl TimeManager
impl TimeManager
pub(crate) async fn spawn( event_tx: EventSender, fs_clock_path: PathBuf, config_files: Vec<PathBuf>, ) -> TimeManagerHandle
pub(crate) async fn new( status: StatusHandle, cmd_rx: Receiver<Command>, fs_clock_path: PathBuf, config_files: Vec<PathBuf>, ) -> Self
pub(crate) async fn run(self)
pub(crate) async fn handle_command(&mut self, cmd: Command)
pub(crate) async fn perform_sync(&mut self)
pub(crate) async fn update_fs_clock(&self)
Auto Trait Implementations§
impl Freeze for TimeManager
impl !RefUnwindSafe for TimeManager
impl Send for TimeManager
impl Sync for TimeManager
impl Unpin for TimeManager
impl !UnwindSafe for TimeManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more