pub enum Packet {
V1(Packet),
}Expand description
The output payload that component’s push out of output ports.
Variants§
Implementations§
Source§impl Packet
impl Packet
Sourcepub fn from_messagepack(bytes: &[u8]) -> Self
pub fn from_messagepack(bytes: &[u8]) -> Self
Convert a messagepack encoded payload into a Packet
Sourcepub fn to_messagepack(&mut self)
pub fn to_messagepack(&mut self)
Converts the Packet into a messagepack-compatible transport.
Sourcepub fn deserialize<T: DeserializeOwned>(self) -> Result<T, Error>
pub fn deserialize<T: DeserializeOwned>(self) -> Result<T, Error>
Try to deserialize a Packet into the target type
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Packet
impl<'de> Deserialize<'de> for Packet
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
impl StructuralPartialEq for Packet
Auto Trait Implementations§
impl Freeze for Packet
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnwindSafe for Packet
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