Trait IssueReporter

Source
pub trait IssueReporter:
    Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required method
    fn report_issues(
        self: Vc<Self>,
        issues: TransientInstance<CapturedIssues>,
        source: TransientValue<RawVc>,
        min_failing_severity: IssueSeverity,
    ) -> Vc<bool>
       where Self: Sized;
}

Required Methods§

Source

fn report_issues( self: Vc<Self>, issues: TransientInstance<CapturedIssues>, source: TransientValue<RawVc>, min_failing_severity: IssueSeverity, ) -> Vc<bool>
where Self: Sized,

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

§Arguments:
  • issues - A ReadRef of CapturedIssues. Typically obtained with source.peek_issues_with_path().
  • source - The root Vc from which issues are traced. Can be used by implementers to determine which issues are new.
  • min_failing_severity - The minimum Vc<IssueSeverity> The minimum issue severity level considered to fatally end the program.

Trait Implementations§

Source§

impl VcValueTrait for Box<dyn IssueReporter>

Source§

type ValueTrait = dyn IssueReporter

Source§

fn get_trait_type_id() -> TraitTypeId

Returns the type id of the trait object.
Source§

fn get_impl_vtables() -> &'static VTableRegistry<Self::ValueTrait>

Returns the vtable for an implementation of this trait. Panics if ValueTypeId does not implement the trait.
Source§

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

Source§

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

Source§

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

Source§

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

Implementors§