Struct gain::service::Service [−][src]
pub struct Service { /* fields omitted */ }
Expand description
Handle to a registered service.
If a stream is opened as a result of service registration or a call, the appropriate stream constructor must be called immediately. Care must be taken when using input buffering with streams which carry stream ids.
Implementations
Register a service.
Call the service. Returns a future.
The receptor is invoked with the reply content, and its return value is passed through.
Receive info packets from the service repeatedly. Returns a future.
Send an info packet to the service. Returns a future.
Construct a handle to a new bidirectional stream.
Construct a handle to a new unidirectional stream.
Construct a handle to a new unidirectional stream.
Auto Trait Implementations
impl RefUnwindSafe for Service
impl UnwindSafe for Service