pub struct RequestFrame {
pub params: FrameParams,
pub opcode: RequestOpcode,
pub body: Bytes,
}
Fields§
§params: FrameParams
§opcode: RequestOpcode
§body: Bytes
Implementations§
Source§impl RequestFrame
impl RequestFrame
pub async fn write( &self, writer: &mut (impl AsyncWrite + Unpin), ) -> Result<(), Error>
pub fn deserialize(&self) -> Result<Request<'_>, ParseError>
Trait Implementations§
Source§impl Clone for RequestFrame
impl Clone for RequestFrame
Source§fn clone(&self) -> RequestFrame
fn clone(&self) -> RequestFrame
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 moreAuto Trait Implementations§
impl !Freeze for RequestFrame
impl RefUnwindSafe for RequestFrame
impl Send for RequestFrame
impl Sync for RequestFrame
impl Unpin for RequestFrame
impl UnwindSafe for RequestFrame
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