Skip to main content

IssueReporter

Trait IssueReporter 

Source
pub trait IssueReporter:
    Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required method
    fn report_issues<'life0, 'async_trait>(
        &'life0 self,
        issues: ReadRef<PlainIssues>,
        source: RawVc,
        min_failing_severity: IssueSeverity,
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn report_issues<'life0, 'async_trait>( &'life0 self, issues: ReadRef<PlainIssues>, source: RawVc, min_failing_severity: IssueSeverity, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Reports already-collected issues to the user (e.g. to stdio). Returns whether fatal (program-ending) issues were present.

This is intentionally not a #[turbo_tasks::function]: it performs no turbo-tasks reads of its own (the issues are collected ahead of time by [collect_issues]), so it is safe to call from a top-level task.

§Arguments:
  • issues - The plain issues already collected from the source.
  • source - The root RawVc from which the issues were traced. Can be used by implementers as a dedup key to determine which issues are new. This must be derived from the OperationVc the issues were collected from.
  • min_failing_severity - The minimum issue severity level considered to fatally end the program.

Trait Implementations§

Source§

impl Dynamic<Box<dyn IssueReporter>> for Box<dyn IssueReporter>

Source§

impl Dynamic<Box<dyn ValueDebug>> for Box<dyn IssueReporter>

Available on debug-assertions enabled only.
Source§

impl TraitVtablePrototype for Box<dyn IssueReporter>

Source§

const LEN: usize = 0usize

Source§

const DEFAULTS: &[Option<&NativeFunction>]

Source§

impl Upcast<Box<dyn IssueReporter>> for Box<dyn IssueReporter>

Source§

impl Upcast<Box<dyn ValueDebug>> for Box<dyn IssueReporter>

Available on debug-assertions enabled only.
Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn IssueReporter>

Available on debug-assertions enabled only.
Source§

impl VcValueTrait for Box<dyn IssueReporter>

Source§

const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>

The per-trait vtable registry, populated by [crate::value_type::register_all_trait_methods] Read more
Source§

type ValueTrait = dyn IssueReporter

Source§

fn get_trait_type_id() -> TraitTypeId

Returns the type id of the trait object.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§