diff --git a/src/events/payload.rs b/src/events/payload.rs index 99aa027f..5a793b9c 100644 --- a/src/events/payload.rs +++ b/src/events/payload.rs @@ -54,3 +54,12 @@ impl EventSendPayload for BytePayload { Ok(self.bytes) } } + +impl EventReceivePayload for BytePayload { + fn from_payload_bytes(mut reader: R) -> IPCResult { + let mut buf = Vec::new(); + reader.read_to_end(&mut buf)?; + + Ok(Self::new(buf)) + } +}