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§
Sourcefn 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,
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 rootRawVcfrom 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 theOperationVcthe issues were collected from.min_failing_severity- The minimum issue severity level considered to fatally end the program.
Trait Implementations§
impl Dynamic<Box<dyn IssueReporter>> for Box<dyn IssueReporter>
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn IssueReporter>
Available on debug-assertions enabled only.
Source§impl TraitVtablePrototype for Box<dyn IssueReporter>
impl TraitVtablePrototype for Box<dyn IssueReporter>
impl Upcast<Box<dyn IssueReporter>> for Box<dyn IssueReporter>
impl Upcast<Box<dyn ValueDebug>> for Box<dyn IssueReporter>
Available on debug-assertions enabled only.
impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn IssueReporter>
Available on debug-assertions enabled only.
Source§impl VcValueTrait for Box<dyn IssueReporter>
impl VcValueTrait for Box<dyn IssueReporter>
Source§const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
The per-trait vtable registry, populated by [crate::value_type::register_all_trait_methods] Read more
type ValueTrait = dyn IssueReporter
Source§fn get_trait_type_id() -> TraitTypeId
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".