BorrowedResponse

Type Alias BorrowedResponse 

Source
pub type BorrowedResponse<'a> = Response<&'a RawValue, &'a RawValue>;
Expand description

A Response that has been partially deserialized, borrowing its contents from the deserializer. This is used primarily for intermediate deserialization. Most users will not require it.

See the top-level docs for more info.

Aliased Type§

pub struct BorrowedResponse<'a> {
    pub id: Id,
    pub payload: ResponsePayload<&'a RawValue, &'a RawValue>,
}

Fields§

§id: Id

The ID of the request that this response is responding to.

§payload: ResponsePayload<&'a RawValue, &'a RawValue>

The response payload.

Implementations§

Source§

impl BorrowedResponse<'_>

Source

pub fn into_owned(self) -> Response

Convert this borrowed response to an owned response by copying the data from the deserializer (if necessary).

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 40 bytes