pub struct SseEvent {
pub event: Option<String>,
pub id: Option<String>,
pub data: String,
pub retry: Option<u64>,
}Expand description
Parsed SSE data event. id and retry are effective connection settings,
including values supplied in earlier control-only blocks.
Fields§
§event: Option<String>§id: Option<String>§data: String§retry: Option<u64>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