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.
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§
Required Methods§
Sourcefn run_capabilities_refresh(&mut self) -> Result<RunCap, Self::Error> ⓘ
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.
impl RunServiceProbe for TermLinux
Available on crate features
event and linux and term only.