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: Reqstate: NetStateresponse: ResponseChan<Resp>

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.