Skip to main content

dispatch

Function dispatch 

Source
pub fn dispatch(
    casts: &[AmBroadcast],
    serial: Option<&str>,
    sender_package: Option<&str>,
    execute: bool,
) -> Result<Vec<String>, AppError>
Expand description

Render (and, when execute, run) the adb broadcasts. Returns the displayable adb ... shell ... command lines (one per broadcast).

ยงErrors

Returns AppError::internal if adb cannot be spawned or a broadcast exits non-zero.