pub enum SanitizedEventType {
AppTransition {
package_name: String,
activity_class: Option<String>,
transition: AppTransition,
},
InterAppInteraction {
source_package: Option<String>,
target_service: String,
interaction_type: InteractionType,
},
Notification {
source_package: String,
category: Option<String>,
channel_id: Option<String>,
title_hint: TextHint,
text_hint: TextHint,
semantic_hints: Vec<SemanticHint>,
is_ongoing: bool,
group_key: Option<String>,
},
ProcessResource {
pid: u32,
package_name: Option<String>,
vm_rss_mb: u32,
vm_swap_mb: u32,
thread_count: u32,
oom_score: i32,
},
FileActivity {
package_name: Option<String>,
extension_category: ExtensionCategory,
activity_type: FsActivityType,
is_hot_file: bool,
},
Screen {
state: ScreenState,
},
SystemStatus {
battery_pct: Option<u8>,
is_charging: bool,
network: NetworkType,
ringer_mode: RingerMode,
location_type: LocationType,
headphone_connected: bool,
},
}Variants§
AppTransition
应用前后台切换 (来自 UsageStatsManager)
InterAppInteraction
应用间交互 (从 Binder 事务推断)
Notification
通知 (脱敏后)
Fields
§
semantic_hints: Vec<SemanticHint>ProcessResource
进程资源状态
Fields
FileActivity
文件系统活动
Screen
屏幕状态
Fields
§
state: ScreenStateSystemStatus
系统状态快照
Trait Implementations§
Source§impl Clone for SanitizedEventType
impl Clone for SanitizedEventType
Source§fn clone(&self) -> SanitizedEventType
fn clone(&self) -> SanitizedEventType
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 moreSource§impl Debug for SanitizedEventType
impl Debug for SanitizedEventType
Source§impl<'de> Deserialize<'de> for SanitizedEventType
impl<'de> Deserialize<'de> for SanitizedEventType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SanitizedEventType
impl PartialEq for SanitizedEventType
Source§impl Serialize for SanitizedEventType
impl Serialize for SanitizedEventType
impl Eq for SanitizedEventType
impl StructuralPartialEq for SanitizedEventType
Auto Trait Implementations§
impl Freeze for SanitizedEventType
impl RefUnwindSafe for SanitizedEventType
impl Send for SanitizedEventType
impl Sync for SanitizedEventType
impl Unpin for SanitizedEventType
impl UnsafeUnpin for SanitizedEventType
impl UnwindSafe for SanitizedEventType
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