pub struct LossClassifier(/* private fields */);Expand description
Classifies a loss by the submission times of its renderer.
Implementations§
Source§impl LossClassifier
impl LossClassifier
Sourcepub fn classify(&self, error: RenderError) -> RenderError
pub fn classify(&self, error: RenderError) -> RenderError
Classifies error as Renderer::classify_loss does.
Sourcepub fn longest_submission(&self) -> Option<SubmissionReport>
pub fn longest_submission(&self) -> Option<SubmissionReport>
The recent submission that kept the GPU busy longest.
Sourcepub fn hung_submission(&self) -> Option<SubmissionReport>
pub fn hung_submission(&self) -> Option<SubmissionReport>
The recent submission that makes Self::classify report a loss as hung, if any.
Trait Implementations§
Source§impl Clone for LossClassifier
impl Clone for LossClassifier
Auto Trait Implementations§
impl Forget for LossClassifier
impl Freeze for LossClassifierwhere
*const ArcInner<SubmissionClock> is !null: Freeze,
PhantomData<ArcInner<SubmissionClock>>: Freeze,
impl Move for LossClassifier
impl RefUnwindSafe for LossClassifier
impl Send for LossClassifier
impl Sync for LossClassifier
impl Unpin for LossClassifier
impl UnsafeUnpin for LossClassifierwhere
*const ArcInner<SubmissionClock> is !null: UnsafeUnpin,
PhantomData<ArcInner<SubmissionClock>>: UnsafeUnpin,
impl UnwindSafe for LossClassifierwhere
Arc<SubmissionClock>: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more