pub struct CapabilityProbe;Implementations§
Source§impl CapabilityProbe
impl CapabilityProbe
Sourcepub async fn detect_phase(rest: &RestClient) -> ProbeResult
pub async fn detect_phase(rest: &RestClient) -> ProbeResult
Probe the Phase 1 endpoint set with single-shot HEAD requests.
Sourcepub fn spawn_loop(
rest: RestClient,
registry: Arc<ToolRegistry>,
notifier: Arc<ListChangedNotifier>,
interval: Duration,
initial_phase: ServerPhase,
) -> JoinHandle<()>
pub fn spawn_loop( rest: RestClient, registry: Arc<ToolRegistry>, notifier: Arc<ListChangedNotifier>, interval: Duration, initial_phase: ServerPhase, ) -> JoinHandle<()>
Spawn a background task that re-probes and swaps the tool inventory on phase transitions.
Auto Trait Implementations§
impl Freeze for CapabilityProbe
impl RefUnwindSafe for CapabilityProbe
impl Send for CapabilityProbe
impl Sync for CapabilityProbe
impl Unpin for CapabilityProbe
impl UnsafeUnpin for CapabilityProbe
impl UnwindSafe for CapabilityProbe
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