Struct TimeManagerHandle
pub struct TimeManagerHandle {
pub(crate) cmd_tx: Sender<Command>,
pub(crate) status: StatusHandle,
}Expand description
Handle to the time manager.
Fields§
§cmd_tx: Sender<Command>§status: StatusHandleImplementations§
§impl TimeManagerHandle
impl TimeManagerHandle
pub async fn shutdown(&self)
pub async fn shutdown(&self)
Shuts down the time manager and waits for it to finish.
pub async fn set_network_available(&self, available: bool)
pub async fn set_network_available(&self, available: bool)
Sets the network availability.
pub async fn confirm_external_time_sync(&self)
pub async fn confirm_external_time_sync(&self)
Confirms that the time has been synced externally.
pub async fn reload_config(&self, config_files: Vec<PathBuf>)
pub async fn reload_config(&self, config_files: Vec<PathBuf>)
Reloads the time manager configuration.
The paths should be ordered by priority. The time manager uses the first valid config it finds in the list.
Trait Implementations§
§impl Clone for TimeManagerHandle
impl Clone for TimeManagerHandle
§fn clone(&self) -> TimeManagerHandle
fn clone(&self) -> TimeManagerHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TimeManagerHandle
impl RefUnwindSafe for TimeManagerHandle
impl Send for TimeManagerHandle
impl Sync for TimeManagerHandle
impl Unpin for TimeManagerHandle
impl UnwindSafe for TimeManagerHandle
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