Module link

Source
Expand description

Links are used to communicate with services. You can obtain a link by starting a service or using the ServiceContext::link function on the service context.

You can also convert a link into a MessageLink which is a link based on a type of message rather than a type of service. This can be done using the Link::message_link function.

Structs§

Link
Links are used to send and receive messages from services you will receive a link when you start a service or through the link() fn on a service context
MessageLink
Alternative type to a link rather than representing a service type this represents a link to a service that accepts a specific message type

Enums§

LinkError
Errors that can occur while working with a link

Type Aliases§

LinkResult
Result type for results where the error is a LinkError