Skip to main content

SchemaScanner

Trait SchemaScanner 

Source
pub trait SchemaScanner:
    Send
    + Sync
    + 'static {
    // Required method
    fn scan(
        &self,
        upstream_id: &str,
        mode: ScanMode,
    ) -> impl Future<Output = Result<Vec<ScanResult>, ScanError>> + Send;
}
Expand description

Drives active schema discovery against an upstream.

Implementations run the discovery handshake (initializetools/list / resources/list / resources/templates/list / prompts/list) and return the merged result of each call.

Required Methods§

Source

fn scan( &self, upstream_id: &str, mode: ScanMode, ) -> impl Future<Output = Result<Vec<ScanResult>, ScanError>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§