pub struct Message {
pub data: ByteString,
pub event: Option<ByteString>,
pub retry: Option<Duration>,
pub id: Option<ByteString>,
}Expand description
An SSE data message.
Fields§
§data: ByteStringMessage data.
event: Option<ByteString>Name of event.
retry: Option<Duration>Recommended retry delay in milliseconds.
id: Option<ByteString>Trait Implementations§
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl !Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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