Skip to main content

ReviewPublisher

Trait ReviewPublisher 

Source
pub trait ReviewPublisher:
    Send
    + Sync
    + 'static {
    // Required methods
    fn descriptor(&self) -> ReviewPublisherDescriptor;
    fn publish<'life0, 'async_trait>(
        &'life0 self,
        request: ReviewPublishRequest,
    ) -> Pin<Box<dyn Future<Output = Result<ReviewPublishResult, ReviewPublishError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn is_available<'life0, 'life1, 'async_trait>(
        &'life0 self,
        workspace_root: &'life1 Path,
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}
Expand description

Submits review findings to an external platform. Implemented by roder-ext-* crates and registered on the extension registry; nothing in core knows about any concrete platform.

Required Methods§

Source

fn descriptor(&self) -> ReviewPublisherDescriptor

Source

fn publish<'life0, 'async_trait>( &'life0 self, request: ReviewPublishRequest, ) -> Pin<Box<dyn Future<Output = Result<ReviewPublishResult, ReviewPublishError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

Source

fn is_available<'life0, 'life1, 'async_trait>( &'life0 self, workspace_root: &'life1 Path, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Cheap availability probe (binary on PATH, token present). Advisory: a false answer should not be treated as a hard failure.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§