pub enum ClientRequest {
ListServices {
uuids: Option<Vec<String>>,
responder: ClientListServicesResponder,
},
ConnectToService {
id: u64,
service: ServerEnd<RemoteServiceMarker>,
control_handle: ClientControlHandle,
},
}
Variants§
ListServices
Enumerates services found on the peer that this Client represents. Results
can be restricted by specifying a list of UUIDs in uuids
. The returned
ServiceInfo structures will contain only basic information about each
service and the characteristics
and includes
fields will be null.
To further interact with services, clients must obtain a RemoteService handle by calling ConnectToService().
ConnectToService
Connects the RemoteService with the given identifier.
Implementations§
Source§impl ClientRequest
impl ClientRequest
pub fn into_list_services( self, ) -> Option<(Option<Vec<String>>, ClientListServicesResponder)>
pub fn into_connect_to_service( self, ) -> Option<(u64, ServerEnd<RemoteServiceMarker>, ClientControlHandle)>
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 ClientRequest
impl !RefUnwindSafe for ClientRequest
impl Send for ClientRequest
impl Sync for ClientRequest
impl Unpin for ClientRequest
impl !UnwindSafe for ClientRequest
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