pub enum RemoteControlRequest {
EchoString {
value: String,
responder: RemoteControlEchoStringResponder,
},
LogMessage {
tag: String,
message: String,
severity: Severity,
responder: RemoteControlLogMessageResponder,
},
IdentifyHost {
responder: RemoteControlIdentifyHostResponder,
},
ConnectCapability {
moniker: String,
capability_set: OpenDirType,
capability_name: String,
server_channel: Channel,
responder: RemoteControlConnectCapabilityResponder,
},
GetTime {
responder: RemoteControlGetTimeResponder,
},
GetBootTime {
responder: RemoteControlGetBootTimeResponder,
},
DeprecatedOpenCapability {
moniker: String,
capability_set: OpenDirType,
capability_name: String,
server_channel: Channel,
flags: OpenFlags,
responder: RemoteControlDeprecatedOpenCapabilityResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: RemoteControlControlHandle,
method_type: MethodType,
},
}
Variants§
EchoString
Returns the input.
LogMessage
Writes a string to the syslog on the device.
IdentifyHost
Fields
§
responder: RemoteControlIdentifyHostResponder
ConnectCapability
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.
Fields
§
capability_set: OpenDirType
§
server_channel: Channel
§
responder: RemoteControlConnectCapabilityResponder
GetTime
Fields
§
responder: RemoteControlGetTimeResponder
GetBootTime
Fields
§
responder: RemoteControlGetBootTimeResponder
DeprecatedOpenCapability
[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.
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: RemoteControlControlHandle
§
method_type: MethodType
Implementations§
Source§impl RemoteControlRequest
impl RemoteControlRequest
pub fn into_echo_string( self, ) -> Option<(String, RemoteControlEchoStringResponder)>
pub fn into_log_message( self, ) -> Option<(String, String, Severity, RemoteControlLogMessageResponder)>
pub fn into_identify_host(self) -> Option<RemoteControlIdentifyHostResponder>
pub fn into_connect_capability( self, ) -> Option<(String, OpenDirType, String, Channel, RemoteControlConnectCapabilityResponder)>
pub fn into_get_time(self) -> Option<RemoteControlGetTimeResponder>
pub fn into_get_boot_time(self) -> Option<RemoteControlGetBootTimeResponder>
pub fn into_deprecated_open_capability( self, ) -> Option<(String, OpenDirType, String, Channel, OpenFlags, RemoteControlDeprecatedOpenCapabilityResponder)>
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 RemoteControlRequest
impl !RefUnwindSafe for RemoteControlRequest
impl Send for RemoteControlRequest
impl Sync for RemoteControlRequest
impl Unpin for RemoteControlRequest
impl !UnwindSafe for RemoteControlRequest
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