pub struct WireFrame { /* private fields */ }Expand description
A frame ready for a socket, in its connection’s encoding.
Implementations§
Source§impl WireFrame
impl WireFrame
Sourcepub fn bytes(&self) -> &Bytes
pub fn bytes(&self) -> &Bytes
The frame’s bytes (JSON text under WireEncoding::Json).
Sourcepub fn into_bytes(self) -> Bytes
pub fn into_bytes(self) -> Bytes
The frame’s bytes, owned.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for WireFrame
impl Forget for WireFrame
impl Move for WireFrame
impl RefUnwindSafe for WireFrame
impl Send for WireFrame
impl Sync for WireFrame
impl Unpin for WireFrame
impl UnsafeUnpin for WireFrame
impl UnwindSafe for WireFrame
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