pub struct RemoteControlProxy { /* private fields */ }
Implementations§
Source§impl RemoteControlProxy
impl RemoteControlProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.developer.remotecontrol/RemoteControl.
Sourcepub fn take_event_stream(&self) -> RemoteControlEventStream
pub fn take_event_stream(&self) -> RemoteControlEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn echo_string(
&self,
value: &str,
) -> QueryResponseFut<String, DefaultFuchsiaResourceDialect>
pub fn echo_string( &self, value: &str, ) -> QueryResponseFut<String, DefaultFuchsiaResourceDialect>
Returns the input.
Sourcepub fn log_message(
&self,
tag: &str,
message: &str,
severity: Severity,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn log_message( &self, tag: &str, message: &str, severity: Severity, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Writes a string to the syslog on the device.
pub fn identify_host( &self, ) -> QueryResponseFut<RemoteControlIdentifyHostResult, DefaultFuchsiaResourceDialect>
Sourcepub fn connect_capability(
&self,
moniker: &str,
capability_set: OpenDirType,
capability_name: &str,
server_channel: Channel,
) -> QueryResponseFut<RemoteControlConnectCapabilityResult, DefaultFuchsiaResourceDialect>
pub fn connect_capability( &self, moniker: &str, capability_set: OpenDirType, capability_name: &str, server_channel: Channel, ) -> QueryResponseFut<RemoteControlConnectCapabilityResult, DefaultFuchsiaResourceDialect>
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, ) -> QueryResponseFut<MonotonicInstant, DefaultFuchsiaResourceDialect>
pub fn get_boot_time( &self, ) -> QueryResponseFut<BootInstant, DefaultFuchsiaResourceDialect>
Sourcepub fn deprecated_open_capability(
&self,
moniker: &str,
capability_set: OpenDirType,
capability_name: &str,
server_channel: Channel,
flags: OpenFlags,
) -> QueryResponseFut<RemoteControlDeprecatedOpenCapabilityResult, DefaultFuchsiaResourceDialect>
pub fn deprecated_open_capability( &self, moniker: &str, capability_set: OpenDirType, capability_name: &str, server_channel: Channel, flags: OpenFlags, ) -> QueryResponseFut<RemoteControlDeprecatedOpenCapabilityResult, DefaultFuchsiaResourceDialect>
[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 Clone for RemoteControlProxy
impl Clone for RemoteControlProxy
Source§fn clone(&self) -> RemoteControlProxy
fn clone(&self) -> RemoteControlProxy
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RemoteControlProxy
impl Debug for RemoteControlProxy
Source§impl Proxy for RemoteControlProxy
impl Proxy for RemoteControlProxy
Source§type Protocol = RemoteControlMarker
type Protocol = RemoteControlMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Attempt to convert the proxy back into a client end. Read more
Source§impl RemoteControlProxyInterface for RemoteControlProxy
impl RemoteControlProxyInterface for RemoteControlProxy
type EchoStringResponseFut = QueryResponseFut<String>
type LogMessageResponseFut = QueryResponseFut<()>
type IdentifyHostResponseFut = QueryResponseFut<Result<IdentifyHostResponse, IdentifyHostError>>
type ConnectCapabilityResponseFut = QueryResponseFut<Result<(), ConnectCapabilityError>>
type GetTimeResponseFut = QueryResponseFut<Instant<MonotonicTimeline>>
type GetBootTimeResponseFut = QueryResponseFut<Instant<BootTimeline>>
type DeprecatedOpenCapabilityResponseFut = QueryResponseFut<Result<(), ConnectCapabilityError>>
fn echo_string(&self, value: &str) -> Self::EchoStringResponseFut
fn log_message( &self, tag: &str, message: &str, severity: Severity, ) -> Self::LogMessageResponseFut
fn identify_host(&self) -> Self::IdentifyHostResponseFut
fn connect_capability( &self, moniker: &str, capability_set: OpenDirType, capability_name: &str, server_channel: Channel, ) -> Self::ConnectCapabilityResponseFut
fn get_time(&self) -> Self::GetTimeResponseFut
fn get_boot_time(&self) -> Self::GetBootTimeResponseFut
fn deprecated_open_capability( &self, moniker: &str, capability_set: OpenDirType, capability_name: &str, server_channel: Channel, flags: OpenFlags, ) -> Self::DeprecatedOpenCapabilityResponseFut
Auto Trait Implementations§
impl Freeze for RemoteControlProxy
impl !RefUnwindSafe for RemoteControlProxy
impl Send for RemoteControlProxy
impl Sync for RemoteControlProxy
impl Unpin for RemoteControlProxy
impl !UnwindSafe for RemoteControlProxy
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ProxyHasClient for Twhere
T: Proxy,
impl<T> ProxyHasClient for Twhere
T: Proxy,
§fn client(&self) -> Result<ZirconClient, Infallible>
fn client(&self) -> Result<ZirconClient, Infallible>
Get a “client” for this proxy. This is just an object which has methods
for a few common handle creation operations.