pub struct LocalDiagnostics { /* private fields */ }Expand description
Shell-owned snapshot. Collection happens once outside render and copy. Raw private inputs have no serialization or Debug implementation.
Implementations§
Source§impl LocalDiagnostics
impl LocalDiagnostics
pub fn new( identity: BuildIdentity, framework_version: impl Into<String>, ) -> Self
pub fn with_os_version(self, version: impl Into<String>) -> Self
pub fn with_runtime(self, runtime: RuntimeDetails) -> Self
pub fn with_redaction(self, redaction: RedactionContext) -> Self
Sourcepub fn issue_paths(&self, config_path: Option<&str>) -> IssuePaths
pub fn issue_paths(&self, config_path: Option<&str>) -> IssuePaths
Project only the explicit per-report path allowlist, without error text or the additional fields included by local copy.
pub fn local_copy(&self, error: Option<&ErrorDetails>) -> LocalCopy
Source§impl LocalDiagnostics
impl LocalDiagnostics
Sourcepub fn log_error(&self, logger: &Logger, surface: &str, error: &ErrorDetails)
pub fn log_error(&self, logger: &Logger, surface: &str, error: &ErrorDetails)
Emit one sanitized error record for one accepted occurrence. Owners call this at the acceptance boundary, never from render or copy. This method does not deduplicate later identical failures or change logger policy.
Trait Implementations§
Source§impl Clone for LocalDiagnostics
impl Clone for LocalDiagnostics
Auto Trait Implementations§
impl Forget for LocalDiagnostics
impl Freeze for LocalDiagnosticswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<RegexI> is !null: Freeze,
PhantomData<ArcInner<RegexI>>: Freeze,
*const Pool<Cache, Box<dyn Fn() -> Cache + Sync + Send + UnwindSafe + RefUnwindSafe>> is !null: Freeze,
PhantomData<Pool<Cache, Box<dyn Fn() -> Cache + Sync + Send + UnwindSafe + RefUnwindSafe>>>: Freeze,
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
PhantomData<String>: Freeze,
impl Move for LocalDiagnostics
impl RefUnwindSafe for LocalDiagnosticswhere
Atomic<usize>: RefUnwindSafe,
Pool<Cache, Box<dyn Fn() -> Cache + Sync + Send + UnwindSafe + RefUnwindSafe>>: RefUnwindSafe,
impl Send for LocalDiagnostics
impl Sync for LocalDiagnostics
impl Unpin for LocalDiagnostics
impl UnsafeUnpin for LocalDiagnosticswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<RegexI> is !null: UnsafeUnpin,
PhantomData<ArcInner<RegexI>>: UnsafeUnpin,
*const Pool<Cache, Box<dyn Fn() -> Cache + Sync + Send + UnwindSafe + RefUnwindSafe>> is !null: UnsafeUnpin,
PhantomData<Pool<Cache, Box<dyn Fn() -> Cache + Sync + Send + UnwindSafe + RefUnwindSafe>>>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for LocalDiagnosticswhere
RawVecInner: UnwindSafe,
Arc<RegexI>: UnwindSafe,
BoxRaw<Pool<Cache, Box<dyn Fn() -> Cache + Sync + Send + UnwindSafe + RefUnwindSafe>>>: UnwindSafe,
Arc<str>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more