#[repr(C)]pub enum OpTypes {
ProfilerInactive = 0,
ProfilerCollectingSample = 1,
ProfilerUnwinding = 2,
ProfilerSerializing = 3,
SIZE = 4,
}Expand description
This enum represents operations a the tracked library might be engaged in. Currently only implemented for profiling. The idea is that if a crash consistently occurs while a particular operation is ongoing, its likely related.
In the future, we might also track wall-clock time of operations (or some statistical sampling thereof) using the same enum.
NOTE: This enum is known to be non-exhaustive. Feel free to add new types as needed.
Variants§
ProfilerInactive = 0
ProfilerCollectingSample = 1
ProfilerUnwinding = 2
ProfilerSerializing = 3
SIZE = 4
Dummy value to allow easier iteration
Implementations§
Trait Implementations§
impl Copy for OpTypes
impl Eq for OpTypes
impl StructuralPartialEq for OpTypes
Auto Trait Implementations§
impl Freeze for OpTypes
impl RefUnwindSafe for OpTypes
impl Send for OpTypes
impl Sync for OpTypes
impl Unpin for OpTypes
impl UnsafeUnpin for OpTypes
impl UnwindSafe for OpTypes
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.