pub struct BinderProbe { /* private fields */ }Expand description
Binder probe subscribing to Binder transaction events.
Implementations§
Source§impl BinderProbe
impl BinderProbe
pub fn new() -> Self
pub fn status(&self) -> BinderProbeStatus
Sourcepub fn try_init(&mut self) -> Result<bool, ProbeError>
pub fn try_init(&mut self) -> Result<bool, ProbeError>
Attempts to initialize Binder/eBPF observation.
Ok(true) means the probe can be polled. Ok(false) means the current
environment cannot support privileged Binder tracing and the daemon
should degrade to public/API and /proc inputs.
Sourcepub fn poll(&self) -> Vec<BinderTransaction>
pub fn poll(&self) -> Vec<BinderTransaction>
Polls Binder events observed since the previous call.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BinderProbe
impl RefUnwindSafe for BinderProbe
impl Send for BinderProbe
impl Sync for BinderProbe
impl Unpin for BinderProbe
impl UnsafeUnpin for BinderProbe
impl UnwindSafe for BinderProbe
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