pub struct RequestDiagnostics(/* private fields */);Expand description
Explicit request-owned diagnostic sink, safely shared with background tasks. Clones append to the same sink. Assets views and handles carry it explicitly. Resource load failures and scene-authoring failures are kept apart.
Implementations§
Source§impl RequestDiagnostics
impl RequestDiagnostics
Sourcepub fn record(&self, error: Arc<Error>)
pub fn record(&self, error: Arc<Error>)
Captures a resource failure once by Arc identity, not by its text or semantic equality.
Sourcepub fn record_scene(&self, error: Arc<Error>)
pub fn record_scene(&self, error: Arc<Error>)
Captures a scene-authoring failure once by Arc identity.
Sourcepub fn errors(&self) -> Vec<Arc<Error>>
pub fn errors(&self) -> Vec<Arc<Error>>
Snapshot of resource failures belonging to this request only.
Sourcepub fn scene_errors(&self) -> ErrorReport
pub fn scene_errors(&self) -> ErrorReport
Snapshot of scene-authoring failures belonging to this request only.
Trait Implementations§
Source§impl Clone for RequestDiagnostics
impl Clone for RequestDiagnostics
Source§impl Debug for RequestDiagnostics
impl Debug for RequestDiagnostics
Auto Trait Implementations§
impl Forget for RequestDiagnostics
impl Freeze for RequestDiagnostics
impl Move for RequestDiagnostics
impl RefUnwindSafe for RequestDiagnostics
impl Send for RequestDiagnostics
impl Sync for RequestDiagnostics
impl Unpin for RequestDiagnostics
impl UnsafeUnpin for RequestDiagnostics
impl UnwindSafe for RequestDiagnostics
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