pub enum Server_Request {
PublishService {
info: ServiceInfo,
service: ClientEnd<LocalServiceMarker>,
responder: Server_PublishServiceResponder,
},
}
Variants§
PublishService
Publishes the given service
so that it is available to all remote peers. Upon publication,
the service is defined to have INITIAL_VALUE_CHANGED_CREDITS credits available for sending
indications/notifications.
The caller must assign distinct handles to the characteristics and descriptors listed in
info
. These identifiers will be used in requests sent to service
.
- request
info
Defines the structure of the GATT service. Includes characteristics and descriptors that will be made available to peers, as well as the service handle, which is required to be unique across all services published to this Server. - request
service
Provides the implementation of the service per the documented behavior of aLocalService
.
- response An empty response indicates the service was successfully published.
- error See
gatt2.PublishServiceError
for possible failure modes.
Fields
§
info: ServiceInfo
§
service: ClientEnd<LocalServiceMarker>
§
responder: Server_PublishServiceResponder
Implementations§
Source§impl Server_Request
impl Server_Request
pub fn into_publish_service( self, ) -> Option<(ServiceInfo, ClientEnd<LocalServiceMarker>, Server_PublishServiceResponder)>
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 Server_Request
impl !RefUnwindSafe for Server_Request
impl Send for Server_Request
impl Sync for Server_Request
impl Unpin for Server_Request
impl !UnwindSafe for Server_Request
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