pub struct ADBConfig {
pub path: PathBuf,
pub max_retries: u32,
pub retry_delay: u64,
pub timeout: u64,
pub log_level: Option<String>,
pub additional_args: Option<Vec<String>>,
}
Expand description
ADB 配置结构体
Fields§
§path: PathBuf
ADB 可执行文件路径
max_retries: u32
重试最大次数
retry_delay: u64
重试延迟(毫秒)
timeout: u64
操作超时(毫秒)
log_level: Option<String>
日志级别
additional_args: Option<Vec<String>>
额外的命令行参数
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ADBConfig
impl<'de> Deserialize<'de> for ADBConfig
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
Auto Trait Implementations§
impl Freeze for ADBConfig
impl RefUnwindSafe for ADBConfig
impl Send for ADBConfig
impl Sync for ADBConfig
impl Unpin for ADBConfig
impl UnwindSafe for ADBConfig
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more