pub struct ServiceProxy(/* private fields */);Expand description
A service definition for hardware USB policy, exposing the controller.
Implementations§
Source§impl ServiceProxy
impl ServiceProxy
Sourcepub fn connect_to_controller(&self) -> Result<ControllerProxy, Error>
pub fn connect_to_controller(&self) -> Result<ControllerProxy, Error>
A client end to connect to the Controller protocol.
Sourcepub fn connect_to_controller_sync(
&self,
) -> Result<ControllerSynchronousProxy, Error>
pub fn connect_to_controller_sync( &self, ) -> Result<ControllerSynchronousProxy, Error>
Like connect_to_controller, but returns a sync proxy.
See Self::connect_to_controller for more details.
Sourcepub fn connect_channel_to_controller(
&self,
server_end: ServerEnd<ControllerMarker>,
) -> Result<(), Error>
pub fn connect_channel_to_controller( &self, server_end: ServerEnd<ControllerMarker>, ) -> Result<(), Error>
Like connect_to_controller, but accepts a server end.
See Self::connect_to_controller for more details.
pub fn instance_name(&self) -> &str
Trait Implementations§
Source§impl ServiceProxy for ServiceProxy
Available on Fuchsia only.
impl ServiceProxy for ServiceProxy
Available on Fuchsia only.
Source§type Service = ServiceMarker
type Service = ServiceMarker
The FIDL service this proxy represents.
Auto Trait Implementations§
impl Freeze for ServiceProxy
impl !RefUnwindSafe for ServiceProxy
impl Send for ServiceProxy
impl Sync for ServiceProxy
impl Unpin for ServiceProxy
impl UnsafeUnpin for ServiceProxy
impl !UnwindSafe for ServiceProxy
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