pub struct AmBroadcast {
pub kind: &'static str,
pub str_extras: Vec<(&'static str, String)>,
pub int_extras: Vec<(&'static str, i64)>,
}Expand description
One resolved am broadcast invocation (its extras).
Fields§
§kind: &'static str“text” | “key” | “scroll”.
str_extras: Vec<(&'static str, String)>String extras (besides type / sender_package).
int_extras: Vec<(&'static str, i64)>Integer extras.
Implementations§
Source§impl AmBroadcast
impl AmBroadcast
Sourcepub fn device_command(
&self,
action: &str,
sender_package: Option<&str>,
) -> String
pub fn device_command( &self, action: &str, sender_package: Option<&str>, ) -> String
The device-side am broadcast ... command string (shell-escaped string
values), suitable as the single argument to adb shell. sender_package
overrides the default SENDER_PACKAGE extra (e.g. a per-target value).
Trait Implementations§
Source§impl Clone for AmBroadcast
impl Clone for AmBroadcast
Source§fn clone(&self) -> AmBroadcast
fn clone(&self) -> AmBroadcast
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 AmBroadcast
impl Debug for AmBroadcast
Source§impl PartialEq for AmBroadcast
impl PartialEq for AmBroadcast
impl Eq for AmBroadcast
impl StructuralPartialEq for AmBroadcast
Auto Trait Implementations§
impl Freeze for AmBroadcast
impl RefUnwindSafe for AmBroadcast
impl Send for AmBroadcast
impl Sync for AmBroadcast
impl Unpin for AmBroadcast
impl UnsafeUnpin for AmBroadcast
impl UnwindSafe for AmBroadcast
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.