pub struct SseEvent {
pub event: String,
pub data: String,
pub id: String,
pub retry: Option<u64>,
}Expand description
One dispatched text/event-stream event.
Fields§
§event: StringThe event: field, "message" when the stream named none.
data: StringThe joined data: fields, without the terminating newline.
id: StringThe stream’s last event id, empty when none was ever set.
retry: Option<u64>Most recent parsed retry: value since the previous emitted event.
This value does not trigger automatic reconnection.
Trait Implementations§
impl Eq for SseEvent
impl StructuralPartialEq for SseEvent
Auto Trait Implementations§
impl Freeze for SseEvent
impl RefUnwindSafe for SseEvent
impl Send for SseEvent
impl Sync for SseEvent
impl Unpin for SseEvent
impl UnsafeUnpin for SseEvent
impl UnwindSafe for SseEvent
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