pub struct Event {
pub event: Option<String>,
pub data: String,
pub id: Option<String>,
pub retry_ms: Option<u64>,
}Expand description
One SSE event.
Fields§
§event: Option<String>event: field (None when absent).
data: StringConcatenated data: lines, joined by \n.
id: Option<String>id: field (None when absent).
retry_ms: Option<u64>retry: field in millis.
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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