pub struct HttpPackStreamMessage {
pub payload: Vec<u8>,
}Fields§
§payload: Vec<u8>Implementations§
Source§impl HttpPackStreamMessage
impl HttpPackStreamMessage
pub fn from_frame(frame: &StreamFrame) -> Self
pub fn decode(&self) -> Result<StreamFrame, StreamDecodeError>
pub fn try_into_frame(&self) -> Result<StreamFrame, StreamDecodeError>
Trait Implementations§
Source§impl Clone for HttpPackStreamMessage
impl Clone for HttpPackStreamMessage
Source§fn clone(&self) -> HttpPackStreamMessage
fn clone(&self) -> HttpPackStreamMessage
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 HttpPackStreamMessage
impl Debug for HttpPackStreamMessage
Source§impl<'de> Deserialize<'de> for HttpPackStreamMessage
impl<'de> Deserialize<'de> for HttpPackStreamMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for HttpPackStreamMessage
impl Serialize for HttpPackStreamMessage
Auto Trait Implementations§
impl Freeze for HttpPackStreamMessage
impl RefUnwindSafe for HttpPackStreamMessage
impl Send for HttpPackStreamMessage
impl Sync for HttpPackStreamMessage
impl Unpin for HttpPackStreamMessage
impl UnwindSafe for HttpPackStreamMessage
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