pub struct RequestResponse {
pub metadata: BytesMut,
pub data: BytesMut,
/* private fields */
}
Expand description
REQUEST_RESPONSE Frame (0x04)
§Frame Contents
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Stream ID |
+-----------+-+-+-+-------------+-------------------------------+
|Frame Type |0|M|F| Flags |
+-------------------------------+
Metadata & Request Data
Fields§
§metadata: BytesMut
Request Metadata
Identification of the service being requested along with parameters for the request.
data: BytesMut
Request Data
Identification of the service being requested along with parameters for the request.
Implementations§
Source§impl RequestResponse
impl RequestResponse
Sourcepub fn set_metadata(&mut self, metadata: BytesMut)
pub fn set_metadata(&mut self, metadata: BytesMut)
Sets the value of RequestResponse.metadata
Sourcepub const fn builder() -> RequestResponseBuilder
pub const fn builder() -> RequestResponseBuilder
Creates a builder to builder a frame of this type.
Trait Implementations§
Source§impl Clone for RequestResponse
impl Clone for RequestResponse
Source§fn clone(&self) -> RequestResponse
fn clone(&self) -> RequestResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RequestResponse
impl Debug for RequestResponse
Source§impl Decoder for RequestResponse
impl Decoder for RequestResponse
Source§impl Encoder for RequestResponse
impl Encoder for RequestResponse
Source§impl FrameVariant for RequestResponse
impl FrameVariant for RequestResponse
Source§const FLAGS_MASK: FrameFlags
const FLAGS_MASK: FrameFlags
Mask that flags of a variant must be in.
Source§fn flags(&self) -> FrameFlags
fn flags(&self) -> FrameFlags
Gets the flags of the variant.
Source§const REQUIRED_FLAGS: FrameFlags = _
const REQUIRED_FLAGS: FrameFlags = _
Flags that must be set for a variant.
Source§impl From<RequestResponse> for Frame
impl From<RequestResponse> for Frame
Source§fn from(value: RequestResponse) -> Self
fn from(value: RequestResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RequestResponse
impl RefUnwindSafe for RequestResponse
impl Send for RequestResponse
impl Sync for RequestResponse
impl Unpin for RequestResponse
impl UnwindSafe for RequestResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more