pub struct UsbServiceProxy(/* private fields */);
Implementations§
Source§impl UsbServiceProxy
impl UsbServiceProxy
pub fn connect_to_device(&self) -> Result<UsbProxy, Error>
Sourcepub fn connect_to_device_sync(&self) -> Result<UsbSynchronousProxy, Error>
pub fn connect_to_device_sync(&self) -> Result<UsbSynchronousProxy, Error>
Like connect_to_device
, but returns a sync proxy.
See Self::connect_to_device
for more details.
Sourcepub fn connect_channel_to_device(
&self,
server_end: ServerEnd<UsbMarker>,
) -> Result<(), Error>
pub fn connect_channel_to_device( &self, server_end: ServerEnd<UsbMarker>, ) -> Result<(), Error>
Like connect_to_device
, but accepts a server end.
See Self::connect_to_device
for more details.
pub fn instance_name(&self) -> &str
Trait Implementations§
Source§impl ServiceProxy for UsbServiceProxy
impl ServiceProxy for UsbServiceProxy
Source§type Service = UsbServiceMarker
type Service = UsbServiceMarker
The FIDL service this proxy represents.
Auto Trait Implementations§
impl Freeze for UsbServiceProxy
impl !RefUnwindSafe for UsbServiceProxy
impl Send for UsbServiceProxy
impl Sync for UsbServiceProxy
impl Unpin for UsbServiceProxy
impl !UnwindSafe for UsbServiceProxy
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