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 or panic.

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.