Struct melnet::Request [−][src]
#[must_use]pub struct Request<Req: DeserializeOwned, Resp: Serialize> { pub body: Req, pub state: NetState, pub response: ResponseChan<Resp>, }
Expand description
A Request<Req, Resp>
carries a stdcode-compatible request of type `Req and can be responded to with responses of type Resp.
Fields
body: Req
state: NetState
response: ResponseChan<Resp>
Auto Trait Implementations
impl<Req, Resp> !RefUnwindSafe for Request<Req, Resp>
impl<Req, Resp> !UnwindSafe for Request<Req, Resp>