pub struct TCPEmulatorTransport { /* private fields */ }
Expand description
Emulator transport running on top on TCP.
Implementations§
Source§impl TCPEmulatorTransport
impl TCPEmulatorTransport
Sourcepub fn new(socket_addr: SocketAddrV4) -> Self
pub fn new(socket_addr: SocketAddrV4) -> Self
Instantiates a new instance of TCPEmulatorTransport
Sourcepub fn get_authentication_token(&mut self) -> Result<String>
pub fn get_authentication_token(&mut self) -> Result<String>
Return authentication token stored in $HOME/.emulator_console_auth_token
Sourcepub fn authenticate(&mut self) -> Result<()>
pub fn authenticate(&mut self) -> Result<()>
Send an authenticate request to this emulator
Trait Implementations§
Source§impl ADBTransport for TCPEmulatorTransport
impl ADBTransport for TCPEmulatorTransport
Auto Trait Implementations§
impl Freeze for TCPEmulatorTransport
impl RefUnwindSafe for TCPEmulatorTransport
impl Send for TCPEmulatorTransport
impl Sync for TCPEmulatorTransport
impl Unpin for TCPEmulatorTransport
impl UnwindSafe for TCPEmulatorTransport
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