Type Alias ResponsePayload

Source
pub type ResponsePayload<T> = RpcResult<NeedsLength<T>, Error>;
Expand description

Type used to encode response payload.

Response can be either successfull, consisting of the result value prepended with its length, or an error of type Error.

Aliased Type§

pub struct ResponsePayload<T>(pub Result<NeedsLength<T>, Error>);

Tuple Fields§

§0: Result<NeedsLength<T>, Error>