fuchsia_component::serverTrait Service
Source pub trait Service {
type Output;
// Required method
fn connect(&mut self, channel: Channel) -> Option<Self::Output>;
}
Expand description
Service
connects channels to service instances.
Note that this trait is implemented by the FidlService
type.
The type of the value yielded by the spawn_service
callback.
Create a new instance of the service on the provided zx::Channel
.
The value returned by this function will be yielded from the stream
output of the ServiceFs
type.