#[repr(i32)]pub enum Mode {
Unspecified = 0,
Active = 1,
Generated = 2,
Dump = 3,
GeneratedBugreportOnly = 4,
}
Variants§
Unspecified = 0
Active = 1
Trace layers snapshots. A snapshot is taken every time a layers change occurs.
Generated = 2
Generate layers snapshots from the transactions kept in the SurfaceFlinger’s internal ring buffer. The layers snapshots generation occurs when this data source is flushed.
Dump = 3
Trace a single layers snapshot.
GeneratedBugreportOnly = 4
Default mode (applied by SurfaceFlinger if no mode is specified). Same as MODE_GENERATED, but triggers the layers snapshots generation only when a bugreport is taken.
Implementations§
Source§impl Mode
impl Mode
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Ord for Mode
impl Ord for Mode
Source§impl PartialOrd for Mode
impl PartialOrd for Mode
impl Copy for Mode
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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