pub type BorrowedResponsePacket<'a> = ResponsePacket<&'a RawValue, &'a RawValue>;
Expand description
A BorrowedResponsePacket
is a ResponsePacket
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§
enum BorrowedResponsePacket<'a> {
Single(Response<&'a RawValue, &'a RawValue>),
Batch(Vec<Response<&'a RawValue, &'a RawValue>>),
}
Variants§
Single(Response<&'a RawValue, &'a RawValue>)
A single response.
Batch(Vec<Response<&'a RawValue, &'a RawValue>>)
A batch of responses.
Implementations§
Source§impl BorrowedResponsePacket<'_>
impl BorrowedResponsePacket<'_>
Sourcepub fn into_owned(self) -> ResponsePacket
pub fn into_owned(self) -> ResponsePacket
Convert this borrowed response packet into an owned packet 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
Size for each variant:
Single
: 40 bytesBatch
: 16 bytes