pub struct SseFrame {
pub event: Option<String>,
pub data: String,
pub id: Option<String>,
pub retry: Option<u64>,
}Expand description
One dispatched Server-Sent Event. event is None when the
event: field was absent; data has the trailing newline stripped.
Fields§
§event: Option<String>§data: String§id: Option<String>§retry: Option<u64>Trait Implementations§
impl Eq for SseFrame
impl StructuralPartialEq for SseFrame
Auto Trait Implementations§
impl Freeze for SseFrame
impl RefUnwindSafe for SseFrame
impl Send for SseFrame
impl Sync for SseFrame
impl Unpin for SseFrame
impl UnsafeUnpin for SseFrame
impl UnwindSafe for SseFrame
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