pub struct AndroidBridgeConfig {
pub host: String,
pub port: u16,
pub auth_key: Option<String>,
}Expand description
转发到 Android bridge 所需的配置。构造时注入,不在 execute() 内读 env。
Fields§
§host: String§port: u16§auth_key: Option<String>HMAC-SHA256 共享密钥(key),转发时必需。
Implementations§
Trait Implementations§
Source§impl Clone for AndroidBridgeConfig
impl Clone for AndroidBridgeConfig
Source§fn clone(&self) -> AndroidBridgeConfig
fn clone(&self) -> AndroidBridgeConfig
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 moreAuto Trait Implementations§
impl Freeze for AndroidBridgeConfig
impl RefUnwindSafe for AndroidBridgeConfig
impl Send for AndroidBridgeConfig
impl Sync for AndroidBridgeConfig
impl Unpin for AndroidBridgeConfig
impl UnsafeUnpin for AndroidBridgeConfig
impl UnwindSafe for AndroidBridgeConfig
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