pub enum ServiceConsumerRequest {
ListPeers {
responder: ServiceConsumerListPeersResponder,
},
ConnectToService {
node: NodeId,
service_name: String,
chan: Channel,
control_handle: ServiceConsumerControlHandle,
},
}
Expand description
Interfaces applicable to consuming services from other devices
Variants§
ListPeers
Fields
§
responder: ServiceConsumerListPeersResponder
Returns a list of all peers that are connected to this Overnet. If this list has not been updated since the last call to this method, it waits until new data is available. Concurrent calls to ListPeers will result in channel closure.
ConnectToService
Connect chan
to some external service on node
with name service_name
.
Implementations§
source§impl ServiceConsumerRequest
impl ServiceConsumerRequest
pub fn into_list_peers(self) -> Option<ServiceConsumerListPeersResponder>
pub fn into_connect_to_service( self ) -> Option<(NodeId, String, Channel, ServiceConsumerControlHandle)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL