pub struct RawEvent {
pub event: String,
pub data: String,
pub id: Option<String>,
pub retry: Option<u64>,
}Expand description
A server event as the transport received it: name and raw data (JSON text).
Fields§
§event: String§data: String§id: Option<String>§retry: Option<u64>Trait Implementations§
impl Eq for RawEvent
impl StructuralPartialEq for RawEvent
Auto Trait Implementations§
impl Forget for RawEvent
impl Freeze for RawEvent
impl Move for RawEvent
impl RefUnwindSafe for RawEvent
impl Send for RawEventwhere
RawVecInner: Send,
impl Sync for RawEventwhere
RawVecInner: Sync,
impl Unpin for RawEvent
impl UnsafeUnpin for RawEvent
impl UnwindSafe for RawEventwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.