pub struct TransactionState {
pub pid: Option<i32>,
pub uid: Option<i32>,
pub vsync_id: Option<i64>,
pub input_event_id: Option<i32>,
pub post_time: Option<i64>,
pub transaction_id: Option<u64>,
pub layer_changes: Vec<LayerState>,
pub display_changes: Vec<DisplayState>,
pub merged_transaction_ids: Vec<u64>,
}
Fields§
§pid: Option<i32>
§uid: Option<i32>
§vsync_id: Option<i64>
§input_event_id: Option<i32>
§post_time: Option<i64>
§transaction_id: Option<u64>
§layer_changes: Vec<LayerState>
§display_changes: Vec<DisplayState>
§merged_transaction_ids: Vec<u64>
Implementations§
Source§impl TransactionState
impl TransactionState
Sourcepub fn vsync_id(&self) -> i64
pub fn vsync_id(&self) -> i64
Returns the value of vsync_id
, or the default value if vsync_id
is unset.
Sourcepub fn input_event_id(&self) -> i32
pub fn input_event_id(&self) -> i32
Returns the value of input_event_id
, or the default value if input_event_id
is unset.
Sourcepub fn post_time(&self) -> i64
pub fn post_time(&self) -> i64
Returns the value of post_time
, or the default value if post_time
is unset.
Sourcepub fn transaction_id(&self) -> u64
pub fn transaction_id(&self) -> u64
Returns the value of transaction_id
, or the default value if transaction_id
is unset.
Trait Implementations§
Source§impl Clone for TransactionState
impl Clone for TransactionState
Source§fn clone(&self) -> TransactionState
fn clone(&self) -> TransactionState
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TransactionState
impl Debug for TransactionState
Source§impl Default for TransactionState
impl Default for TransactionState
Source§impl Message for TransactionState
impl Message for TransactionState
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for TransactionState
impl PartialEq for TransactionState
impl StructuralPartialEq for TransactionState
Auto Trait Implementations§
impl Freeze for TransactionState
impl RefUnwindSafe for TransactionState
impl Send for TransactionState
impl Sync for TransactionState
impl Unpin for TransactionState
impl UnwindSafe for TransactionState
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