pub struct EventCodec;Expand description
This codec only impls Decoder because it’s only job is to read messages
from i3 and turn them into frames of Events. All other interactions with i3
over the IPC are simple send/receive operations. Events received will be
relative to what was subscribed.
Trait Implementations§
Source§impl Decoder for EventCodec
impl Decoder for EventCodec
Source§fn decode(&mut self, src: &mut BytesMut) -> Result<Option<Self::Item>, Error>
fn decode(&mut self, src: &mut BytesMut) -> Result<Option<Self::Item>, Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Auto Trait Implementations§
impl Freeze for EventCodec
impl RefUnwindSafe for EventCodec
impl Send for EventCodec
impl Sync for EventCodec
impl Unpin for EventCodec
impl UnwindSafe for EventCodec
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