pub enum DeviceRequest {
StartAdb {
interface: ServerEnd<UsbAdbImpl_Marker>,
responder: DeviceStartAdbResponder,
},
StopAdb {
responder: DeviceStopAdbResponder,
},
}
Expand description
Device interface for USB ADB. The device manages the USB endpoints needed for ADB.
Variants§
StartAdb
Start USB ADB protocol with |interface|.
StopAdb
Stops USB ADB protocol.
Fields
§
responder: DeviceStopAdbResponder
Implementations§
Source§impl DeviceRequest
impl DeviceRequest
pub fn into_start_adb( self, ) -> Option<(ServerEnd<UsbAdbImpl_Marker>, DeviceStartAdbResponder)>
pub fn into_stop_adb(self) -> Option<DeviceStopAdbResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeviceRequest
impl !RefUnwindSafe for DeviceRequest
impl Send for DeviceRequest
impl Sync for DeviceRequest
impl Unpin for DeviceRequest
impl !UnwindSafe for DeviceRequest
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