pub struct Orchestrator { /* private fields */ }Implementations§
Source§impl Orchestrator
impl Orchestrator
pub fn new(sources: Vec<Box<dyn TimeSource>>, verbose: bool) -> Self
Sourcepub fn resolve(
&self,
target: SocketAddr,
timeout: Duration,
) -> Result<(OffsetMicros, &'static str), OrchestratorError>
pub fn resolve( &self, target: SocketAddr, timeout: Duration, ) -> Result<(OffsetMicros, &'static str), OrchestratorError>
Try each source in order; return first success with the method name.
Auto Trait Implementations§
impl !RefUnwindSafe for Orchestrator
impl !Send for Orchestrator
impl !Sync for Orchestrator
impl !UnwindSafe for Orchestrator
impl Freeze for Orchestrator
impl Unpin for Orchestrator
impl UnsafeUnpin for Orchestrator
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