pub struct AdbServer { /* private fields */ }Expand description
An adb server, reached over TCP on the loopback interface.
Implementations§
Source§impl AdbServer
impl AdbServer
pub fn new(addr: SocketAddr) -> Self
Sourcepub fn from_env() -> Self
pub fn from_env() -> Self
The server on 127.0.0.1 at the port SERVER_PORT_VAR names, else 5037.
Sourcepub fn with_io_timeout(self, timeout: Duration) -> Self
pub fn with_io_timeout(self, timeout: Duration) -> Self
Sets the deadline for each read and write on a server connection.
pub fn addr(&self) -> SocketAddr
Sourcepub fn devices(&self) -> Result<Vec<DeviceEntry>>
pub fn devices(&self) -> Result<Vec<DeviceEntry>>
Every target the server knows, in every state (host:devices-l).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdbServer
impl RefUnwindSafe for AdbServer
impl Send for AdbServer
impl Sync for AdbServer
impl Unpin for AdbServer
impl UnsafeUnpin for AdbServer
impl UnwindSafe for AdbServer
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request