pub struct RemoteControlSynchronousProxy { /* private fields */ }
Implementations§
Source§impl RemoteControlSynchronousProxy
impl RemoteControlSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<RemoteControlEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<RemoteControlEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn echo_string(
&self,
value: &str,
___deadline: MonotonicInstant,
) -> Result<String, Error>
pub fn echo_string( &self, value: &str, ___deadline: MonotonicInstant, ) -> Result<String, Error>
Returns the input.
Sourcepub fn log_message(
&self,
tag: &str,
message: &str,
severity: Severity,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn log_message( &self, tag: &str, message: &str, severity: Severity, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Writes a string to the syslog on the device.
pub fn identify_host( &self, ___deadline: MonotonicInstant, ) -> Result<RemoteControlIdentifyHostResult, Error>
Sourcepub fn connect_capability(
&self,
moniker: &str,
capability_set: OpenDirType,
capability_name: &str,
server_channel: Channel,
___deadline: MonotonicInstant,
) -> Result<RemoteControlConnectCapabilityResult, Error>
pub fn connect_capability( &self, moniker: &str, capability_set: OpenDirType, capability_name: &str, server_channel: Channel, ___deadline: MonotonicInstant, ) -> Result<RemoteControlConnectCapabilityResult, Error>
Connects a channel to a service, given a moniker and a channel iff the component identified by the given moniker exposes a capability of the requested name.
pub fn get_time( &self, ___deadline: MonotonicInstant, ) -> Result<MonotonicInstant, Error>
pub fn get_boot_time( &self, ___deadline: MonotonicInstant, ) -> Result<BootInstant, Error>
Sourcepub fn deprecated_open_capability(
&self,
moniker: &str,
capability_set: OpenDirType,
capability_name: &str,
server_channel: Channel,
flags: OpenFlags,
___deadline: MonotonicInstant,
) -> Result<RemoteControlDeprecatedOpenCapabilityResult, Error>
pub fn deprecated_open_capability( &self, moniker: &str, capability_set: OpenDirType, capability_name: &str, server_channel: Channel, flags: OpenFlags, ___deadline: MonotonicInstant, ) -> Result<RemoteControlDeprecatedOpenCapabilityResult, Error>
[DEPRECATED - Use ConnectCapability instead.]
Connects a channel to a service, given a moniker and a channel iff the component identified by the given moniker exposes a capability of the requested name.
Trait Implementations§
Source§impl SynchronousProxy for RemoteControlSynchronousProxy
impl SynchronousProxy for RemoteControlSynchronousProxy
Source§type Proxy = RemoteControlProxy
type Proxy = RemoteControlProxy
The async proxy for the same protocol.
Source§type Protocol = RemoteControlMarker
type Protocol = RemoteControlMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for RemoteControlSynchronousProxy
impl RefUnwindSafe for RemoteControlSynchronousProxy
impl Send for RemoteControlSynchronousProxy
impl Sync for RemoteControlSynchronousProxy
impl Unpin for RemoteControlSynchronousProxy
impl UnwindSafe for RemoteControlSynchronousProxy
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