pub struct ServerSentEvent {
pub event: Option<String>,
pub data: String,
}Expand description
A raw Server-Sent Event decoded from the HTTP response body.
Fields§
§event: Option<String>§data: StringTrait Implementations§
Source§impl Clone for ServerSentEvent
impl Clone for ServerSentEvent
Auto Trait Implementations§
impl Forget for ServerSentEvent
impl Freeze for ServerSentEvent
impl Move for ServerSentEvent
impl RefUnwindSafe for ServerSentEvent
impl Send for ServerSentEvent
impl Sync for ServerSentEvent
impl Unpin for ServerSentEvent
impl UnsafeUnpin for ServerSentEvent
impl UnwindSafe for ServerSentEvent
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