pub enum Server_Request {
PublishService {
info: ServiceInfo,
delegate: ClientEnd<LocalServiceDelegateMarker>,
service: ServerEnd<LocalServiceMarker>,
responder: Server_PublishServiceResponder,
},
}
Variants§
PublishService
Publishes the given service so that it is available to all remote peers. A LocalServiceDelegate must be provided over which to receive service requests.
The caller must assign distinct identifiers to the characteristics and
descriptors listed in info
. These identifiers will be used in requests
sent to delegate
.
service
can be used to interact with the pubished service. If this
service cannot be published then the handle for service
will be closed.
Returns the success or failure status of the call and a unique identifier that can be used to unregister the service.
Fields
§
info: ServiceInfo
§
delegate: ClientEnd<LocalServiceDelegateMarker>
§
service: ServerEnd<LocalServiceMarker>
§
responder: Server_PublishServiceResponder
Implementations§
Source§impl Server_Request
impl Server_Request
pub fn into_publish_service( self, ) -> Option<(ServiceInfo, ClientEnd<LocalServiceDelegateMarker>, ServerEnd<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