pub struct BinderTransaction {
pub timestamp_ms: i64,
pub source_pid: u32,
pub source_uid: u32,
pub target_service: String,
pub target_method: String,
pub is_oneway: bool,
pub payload_size: u32,
}Expand description
从 eBPF tracepoint 解析出的 Binder 事务
Fields§
§timestamp_ms: i64§source_pid: u32§source_uid: u32§target_service: String目标服务名 (从 Binder node 名称解析) 例如: “notification”, “activity”, “package”
target_method: String目标方法 (从 Binder 事务 code 推断) 例如: “enqueueNotificationWithTag” (code 5 in INotificationManager)
is_oneway: bool事务是否为 oneway (不需要返回值)
payload_size: u32Parcel 数据大小 (bytes)
Implementations§
Source§impl BinderTransaction
impl BinderTransaction
Sourcepub fn to_event(&self) -> BinderTxEvent
pub fn to_event(&self) -> BinderTxEvent
转换为 aios-spec 的 BinderTxEvent
Trait Implementations§
Source§impl Clone for BinderTransaction
impl Clone for BinderTransaction
Source§fn clone(&self) -> BinderTransaction
fn clone(&self) -> BinderTransaction
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for BinderTransaction
impl RefUnwindSafe for BinderTransaction
impl Send for BinderTransaction
impl Sync for BinderTransaction
impl Unpin for BinderTransaction
impl UnsafeUnpin for BinderTransaction
impl UnwindSafe for BinderTransaction
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