Skip to main content

RunServiceProbe

Trait RunServiceProbe 

Source
pub trait RunServiceProbe: RunService {
    type Error;

    // Required method
    fn run_capabilities_refresh(&mut self) -> Result<RunCap, Self::Error> ;
}
Expand description

Actively refreshes runtime service capabilities.


📍 run/regime


This extension trait is for services whose capabilities may require probing, querying, negotiation, or backend interaction.

Implementations may perform I/O, mutate cached service state, or fail while refreshing the capability snapshot.

Required Associated Types§

Source

type Error

Error returned while refreshing service capabilities.

Required Methods§

Source

fn run_capabilities_refresh(&mut self) -> Result<RunCap, Self::Error>

Refreshes and returns the currently known service capabilities.

Unlike RunService::run_capabilities, this method may actively probe the backend, update internal cached state, block briefly, or fail.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl RunServiceProbe for TermLinux

Available on crate features event and linux and term only.