pub trait BlockValidator: Send + Sync {
// Required methods
fn validate_blocks<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 ValidationRequest<'life2>,
) -> Pin<Box<dyn Future<Output = Result<Vec<ValidationOutcome>, ValidatorError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn block_schemas<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<BlockSchemas, ValidatorError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Checks the blocks agents write against the CMS’s block registrations; CmsValidatorClient
in production.
Required Methods§
Sourcefn validate_blocks<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 ValidationRequest<'life2>,
) -> Pin<Box<dyn Future<Output = Result<Vec<ValidationOutcome>, ValidatorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn validate_blocks<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 ValidationRequest<'life2>,
) -> Pin<Box<dyn Future<Output = Result<Vec<ValidationOutcome>, ValidatorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
The outcome of each page, in request order.
Sourcefn block_schemas<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<BlockSchemas, ValidatorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn block_schemas<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<BlockSchemas, ValidatorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
The current block registrations; crate::state::McpState::block_schemas caches them.