[][src]Trait kompact::prelude::Request

pub trait Request: MessageBounds {
    type Response;
    fn reply(&self, resp: Self::Response);
}

A marker trait for messags that expect a response

Messages with this trait can be replied to.

Associated Types

type Response

The type of the response that is expected

Loading content...

Required methods

fn reply(&self, resp: Self::Response)

Fulfill this request by supplying a response of the appropriate type

Loading content...

Implementors

impl<Req: MessageBounds, Resp: MessageBounds> Request for WithSender<Req, Resp>[src]

type Response = Resp

impl<Req: MessageBounds, Resp: MessageBounds> Request for WithSenderStrong<Req, Resp>[src]

type Response = Resp

impl<Req: MessageBounds, Resp: Debug + 'static> Request for WithRecipient<Req, Resp>[src]

type Response = Resp

Loading content...