pub struct RecoveredTraceInfo {
pub reason: Option<i32>,
pub original_file_size_bytes: Option<u64>,
pub bytes_truncated: Option<u64>,
}Expand description
Injected into TracePacket by perfetto post-reboot recovery to record recovered trace metadata.
Fields§
§reason: Option<i32>§original_file_size_bytes: Option<u64>Raw trace file size (in bytes) on disk prior to post-reboot recovery.
bytes_truncated: Option<u64>Amount of trailing corrupted/incomplete bytes truncated during recovery.
Implementations§
Source§impl RecoveredTraceInfo
impl RecoveredTraceInfo
Sourcepub fn reason(&self) -> Reason
pub fn reason(&self) -> Reason
Returns the enum value of reason, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_reason(&mut self, value: Reason)
pub fn set_reason(&mut self, value: Reason)
Sets reason to the provided enum value.
Sourcepub fn original_file_size_bytes(&self) -> u64
pub fn original_file_size_bytes(&self) -> u64
Returns the value of original_file_size_bytes, or the default value if original_file_size_bytes is unset.
Sourcepub fn bytes_truncated(&self) -> u64
pub fn bytes_truncated(&self) -> u64
Returns the value of bytes_truncated, or the default value if bytes_truncated is unset.
Trait Implementations§
Source§impl Clone for RecoveredTraceInfo
impl Clone for RecoveredTraceInfo
Source§fn clone(&self) -> RecoveredTraceInfo
fn clone(&self) -> RecoveredTraceInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RecoveredTraceInfo
Source§impl Debug for RecoveredTraceInfo
impl Debug for RecoveredTraceInfo
Source§impl Default for RecoveredTraceInfo
impl Default for RecoveredTraceInfo
impl Eq for RecoveredTraceInfo
Source§impl Hash for RecoveredTraceInfo
impl Hash for RecoveredTraceInfo
Source§impl Message for RecoveredTraceInfo
impl Message for RecoveredTraceInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for RecoveredTraceInfo
impl PartialEq for RecoveredTraceInfo
impl StructuralPartialEq for RecoveredTraceInfo
Auto Trait Implementations§
impl Freeze for RecoveredTraceInfo
impl RefUnwindSafe for RecoveredTraceInfo
impl Send for RecoveredTraceInfo
impl Sync for RecoveredTraceInfo
impl Unpin for RecoveredTraceInfo
impl UnsafeUnpin for RecoveredTraceInfo
impl UnwindSafe for RecoveredTraceInfo
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