pub struct EventDecoder { /* private fields */ }Expand description
Turns wire records back into ClientEvents (one decoder per subscription).
Implementations§
Source§impl EventDecoder
impl EventDecoder
Sourcepub fn decode(&mut self, value: JsonValue) -> Option<ClientEvent>
pub fn decode(&mut self, value: JsonValue) -> Option<ClientEvent>
Decodes one wire record; None for records that are not client events.
Trait Implementations§
Source§impl Debug for EventDecoder
impl Debug for EventDecoder
Auto Trait Implementations§
impl Freeze for EventDecoder
impl RefUnwindSafe for EventDecoder
impl Send for EventDecoder
impl Sync for EventDecoder
impl Unpin for EventDecoder
impl UnsafeUnpin for EventDecoder
impl UnwindSafe for EventDecoder
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