pub struct ActualDisplayFrameStart {
pub cookie: Option<i64>,
pub token: Option<i64>,
pub pid: Option<i32>,
pub present_type: Option<i32>,
pub on_time_finish: Option<bool>,
pub gpu_composition: Option<bool>,
pub jank_type: Option<i32>,
pub prediction_type: Option<i32>,
pub jank_severity_type: Option<i32>,
}Expand description
Indicates the start of actual timeline slice for DisplayFrames. Also includes the jank information.
Fields§
Cookie used to correlate between the start and end messages of the same frame. Since all values except the ts are same for start and end, cookie helps in preventing redundant data transmission. The same cookie is used only by start and end messages of a single frame and is otherwise unique.
token: Option<i64>Token received by SurfaceFlinger for its work this.token = SurfaceFrame.display_frame_token
pid: Option<i32>Pid of SurfaceFlinger. Used in creating the timeline tracks (and slices) inside the SurfaceFlinger process group.
present_type: Option<i32>§on_time_finish: Option<bool>§gpu_composition: Option<bool>§jank_type: Option<i32>A bitmask of JankType. More than one reason can be attributed to a janky frame.
prediction_type: Option<i32>§jank_severity_type: Option<i32>Implementations§
Source§impl ActualDisplayFrameStart
impl ActualDisplayFrameStart
Returns the value of cookie, or the default value if cookie is unset.
Sourcepub fn present_type(&self) -> PresentType
pub fn present_type(&self) -> PresentType
Returns the enum value of present_type, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_present_type(&mut self, value: PresentType)
pub fn set_present_type(&mut self, value: PresentType)
Sets present_type to the provided enum value.
Sourcepub fn on_time_finish(&self) -> bool
pub fn on_time_finish(&self) -> bool
Returns the value of on_time_finish, or the default value if on_time_finish is unset.
Sourcepub fn gpu_composition(&self) -> bool
pub fn gpu_composition(&self) -> bool
Returns the value of gpu_composition, or the default value if gpu_composition is unset.
Sourcepub fn jank_type(&self) -> i32
pub fn jank_type(&self) -> i32
Returns the value of jank_type, or the default value if jank_type is unset.
Sourcepub fn prediction_type(&self) -> PredictionType
pub fn prediction_type(&self) -> PredictionType
Returns the enum value of prediction_type, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_prediction_type(&mut self, value: PredictionType)
pub fn set_prediction_type(&mut self, value: PredictionType)
Sets prediction_type to the provided enum value.
Sourcepub fn jank_severity_type(&self) -> JankSeverityType
pub fn jank_severity_type(&self) -> JankSeverityType
Returns the enum value of jank_severity_type, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_jank_severity_type(&mut self, value: JankSeverityType)
pub fn set_jank_severity_type(&mut self, value: JankSeverityType)
Sets jank_severity_type to the provided enum value.
Trait Implementations§
Source§impl Clone for ActualDisplayFrameStart
impl Clone for ActualDisplayFrameStart
Source§fn clone(&self) -> ActualDisplayFrameStart
fn clone(&self) -> ActualDisplayFrameStart
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ActualDisplayFrameStart
impl Debug for ActualDisplayFrameStart
Source§impl Default for ActualDisplayFrameStart
impl Default for ActualDisplayFrameStart
Source§fn default() -> ActualDisplayFrameStart
fn default() -> ActualDisplayFrameStart
Source§impl Message for ActualDisplayFrameStart
impl Message for ActualDisplayFrameStart
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for ActualDisplayFrameStart
impl PartialEq for ActualDisplayFrameStart
impl Copy for ActualDisplayFrameStart
impl StructuralPartialEq for ActualDisplayFrameStart
Auto Trait Implementations§
impl Freeze for ActualDisplayFrameStart
impl RefUnwindSafe for ActualDisplayFrameStart
impl Send for ActualDisplayFrameStart
impl Sync for ActualDisplayFrameStart
impl Unpin for ActualDisplayFrameStart
impl UnwindSafe for ActualDisplayFrameStart
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].